Lines Matching refs:cases
63 // Test cases from RFC 2202 section 3
71 } cases[] = {
123 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
125 ASSERT_TRUE(hmac.Init(reinterpret_cast<const unsigned char*>(cases[i].key),
126 cases[i].key_len));
127 std::string data_string(cases[i].data, cases[i].data_len);
130 EXPECT_EQ(0, memcmp(cases[i].digest, digest, kSHA1DigestSize));
218 } cases[] = {
230 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) {
231 std::string data_string(cases[i].data, cases[i].data_len);
234 EXPECT_EQ(0, memcmp(cases[i].digest, digest, kSHA1DigestSize));