Commit 505839e9 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac954] added a sanity check on the size of test data as suggested in review.

parent 78def66f
......@@ -388,6 +388,10 @@ doRFC4231Tests(HashAlgorithm hash_algorithm,
secret_list.push_back(std::string(131, 0xaa));
secret_list.push_back(std::string(131, 0xaa));
// Make sure we provide a consistent size of test data
ASSERT_EQ(secret_list.size(), data_list.size());
ASSERT_EQ(secret_list.size(), hmac_list.size());
for (int i = 0; i < data_list.size(); ++i) {
SCOPED_TRACE("RFC4231 HMAC test for algorithm ID: " +
lexical_cast<std::string>(hash_algorithm) +
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment