Lines Matching full:base64_tests
27 } base64_tests[] = {
361 for( i = 0; i < sizeof(base64_tests) / sizeof(base64_tests[0]); ++i ) {
368 LOG(LS_VERBOSE) << "B64: " << base64_tests[i].cyphertext;
371 reinterpret_cast<const unsigned char*>(base64_tests[i].plaintext);
373 cypher_length = strlen(base64_tests[i].cyphertext);
378 base64_tests[i].plain_length,
385 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext);
390 base64_tests[i].plain_length,
397 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext);
407 EXPECT_EQ(decode_length, base64_tests[i].plain_length);
410 EXPECT_EQ(0, memcmp(decode_buffer, base64_tests[i].plaintext, decode_length));
426 EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length);
427 EXPECT_EQ_ARRAY(decoded2.size(), decoded2.data(), base64_tests[i].plaintext, i);
441 EXPECT_EQ(decoded2.size(), base64_tests[i].plain_length);
442 EXPECT_EQ_ARRAY(decoded2.size(), decoded2, base64_tests[i].plaintext, i);