Lines Matching refs:base64_tests
29 } base64_tests[] = { variable
367 for (i = 0; i < sizeof(base64_tests) / sizeof(base64_tests[0]); ++i) { in TEST()
374 RTC_LOG(LS_VERBOSE) << "B64: " << base64_tests[i].cyphertext; in TEST()
377 reinterpret_cast<const unsigned char*>(base64_tests[i].plaintext); in TEST()
379 cypher_length = strlen(base64_tests[i].cyphertext); in TEST()
384 Base64Escape(unsigned_plaintext, base64_tests[i].plain_length, in TEST()
390 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST()
395 Base64Escape(unsigned_plaintext, base64_tests[i].plain_length, in TEST()
401 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST()
409 EXPECT_EQ(decode_length, base64_tests[i].plain_length); in TEST()
413 memcmp(decode_buffer, base64_tests[i].plaintext, decode_length)); in TEST()
429 EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length); in TEST()
431 base64_tests[i].plaintext, i); in TEST()
445 EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length); in TEST()
446 EXPECT_EQ_ARRAY(decoded2.size(), decoded2, base64_tests[i].plaintext, i); in TEST()