Lines Matching refs:out_bytes
64 size_t out_bytes = sizeof(buf); in TEST() local
66 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
74 EXPECT_EQ(sizeof(buf) - (3 /* chars */ * 4 /* bytes each */), out_bytes); in TEST()
90 size_t out_bytes = sizeof(buf); in TEST() local
95 EXPECT_EQ(2U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
103 EXPECT_EQ(sizeof(buf) - 4, out_bytes); in TEST()
119 size_t out_bytes = sizeof(buf); in TEST() local
124 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
131 EXPECT_EQ(sizeof(buf) - 2, out_bytes); in TEST()
147 size_t out_bytes = sizeof(buf); in TEST() local
151 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
157 EXPECT_EQ(sizeof(buf) - 1, out_bytes); in TEST()
173 size_t out_bytes = sizeof(buf); in TEST() local
177 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
183 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
190 EXPECT_EQ(sizeof(buf) - 2, out_bytes); in TEST()
206 size_t out_bytes = sizeof(buf); in TEST() local
210 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
217 EXPECT_EQ(sizeof(buf) - 1, out_bytes); in TEST()
233 size_t out_bytes = 1; in TEST() local
236 out_bytes = 1; in TEST()
238 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
241 EXPECT_EQ(0U, out_bytes); in TEST()
244 out_bytes = 0; in TEST()
246 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
249 EXPECT_EQ(0U, out_bytes); in TEST()
252 out_bytes = 1; in TEST()
254 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
257 EXPECT_EQ(0U, out_bytes); in TEST()
260 out_bytes = 1; in TEST()
262 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
265 EXPECT_EQ(0U, out_bytes); in TEST()
279 size_t out_bytes = 0; in TEST() local
281 ASSERT_EQ(static_cast<size_t>(-1), iconv(INVALID_ICONV_T, &in, &in_bytes, &out, &out_bytes)); in TEST()
302 size_t out_bytes = sizeof(buf); in RoundTrip() local
303 size_t replacement_count = iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
326 out_bytes = sizeof(buf2); in RoundTrip()
327 iconv(c, &in, &in_bytes, &out, &out_bytes); in RoundTrip()
367 size_t out_bytes = sizeof(out_buf); in Check() local
370 ASSERT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in Check()
439 size_t out_bytes = sizeof(out_buf); in TEST() local
444 ASSERT_EQ(static_cast<size_t>(0), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
446 EXPECT_EQ(sizeof(out_buf), out_bytes); in TEST()
450 ASSERT_EQ(static_cast<size_t>(0), iconv(c, nullptr, &in_bytes, &out, &out_bytes)); in TEST()
452 EXPECT_EQ(sizeof(out_buf), out_bytes); in TEST()