Lines Matching refs:cases
62 // Test cases from RFC 2202 section 3
70 } cases[] = {
122 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
124 ASSERT_TRUE(hmac.Init(reinterpret_cast<const unsigned char*>(cases[i].key),
125 cases[i].key_len));
126 std::string data_string(cases[i].data, cases[i].data_len);
129 EXPECT_EQ(memcmp(cases[i].digest, digest, kDigestSize), 0);
146 } cases[] = {
158 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
159 std::string data_string(cases[i].data, cases[i].data_len);
162 EXPECT_EQ(memcmp(cases[i].digest, digest, kDigestSize), 0);