Searched refs:dst_enc (Results 1 – 1 of 1) sorted by relevance
291 static void RoundTrip(const char* dst_enc, const char* expected_bytes, size_t n) { in RoundTrip() argument295 iconv_t c = iconv_open(dst_enc, "UTF-8"); in RoundTrip()296 ASSERT_NE(INVALID_ICONV_T, c) << dst_enc; in RoundTrip()307 EXPECT_EQ(expected_bytes[i], buf[i]) << i << ' '<< dst_enc; in RoundTrip()313 if (strstr(dst_enc, "ascii")) { in RoundTrip()314 GTEST_LOG_(INFO) << "can't round-trip " << dst_enc << "\n"; in RoundTrip()319 c = iconv_open("UTF-8", dst_enc); in RoundTrip()320 ASSERT_NE(INVALID_ICONV_T, c) << dst_enc; in RoundTrip()329 ASSERT_STREQ(utf8, buf2) << dst_enc; in RoundTrip()