Lines Matching refs:output
72 std::string output; in TEST() member
81 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input)); in TEST()
90 std::string output; in TEST() member
104 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input)); in TEST()
110 int output; in TEST() member
140 int output = 0; in TEST() local
141 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output)); in TEST()
142 EXPECT_EQ(cases[i].output, output); in TEST()
145 output = 0; in TEST()
146 EXPECT_EQ(cases[i].success, StringToInt(utf16_input, &output)); in TEST()
147 EXPECT_EQ(cases[i].output, output); in TEST()
155 int output; in TEST() local
156 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
157 EXPECT_EQ(6, output); in TEST()
160 output = 0; in TEST()
161 EXPECT_FALSE(StringToInt(utf16_input, &output)); in TEST()
162 EXPECT_EQ(6, output); in TEST()
164 output = 0; in TEST()
166 EXPECT_FALSE(StringToInt(string16(negative_wide_input), &output)); in TEST()
167 EXPECT_EQ(0, output); in TEST()
173 unsigned output; in TEST() member
204 unsigned output = 0; in TEST() local
205 EXPECT_EQ(cases[i].success, StringToUint(cases[i].input, &output)); in TEST()
206 EXPECT_EQ(cases[i].output, output); in TEST()
209 output = 0; in TEST()
210 EXPECT_EQ(cases[i].success, StringToUint(utf16_input, &output)); in TEST()
211 EXPECT_EQ(cases[i].output, output); in TEST()
219 unsigned output; in TEST() local
220 EXPECT_FALSE(StringToUint(input_string, &output)); in TEST()
221 EXPECT_EQ(6U, output); in TEST()
224 output = 0; in TEST()
225 EXPECT_FALSE(StringToUint(utf16_input, &output)); in TEST()
226 EXPECT_EQ(6U, output); in TEST()
228 output = 0; in TEST()
230 EXPECT_FALSE(StringToUint(string16(negative_wide_input), &output)); in TEST()
231 EXPECT_EQ(0U, output); in TEST()
237 int64_t output; in TEST() member
274 int64_t output = 0; in TEST() local
275 EXPECT_EQ(cases[i].success, StringToInt64(cases[i].input, &output)); in TEST()
276 EXPECT_EQ(cases[i].output, output); in TEST()
279 output = 0; in TEST()
280 EXPECT_EQ(cases[i].success, StringToInt64(utf16_input, &output)); in TEST()
281 EXPECT_EQ(cases[i].output, output); in TEST()
289 int64_t output; in TEST() local
290 EXPECT_FALSE(StringToInt64(input_string, &output)); in TEST()
291 EXPECT_EQ(6, output); in TEST()
294 output = 0; in TEST()
295 EXPECT_FALSE(StringToInt64(utf16_input, &output)); in TEST()
296 EXPECT_EQ(6, output); in TEST()
302 uint64_t output; in TEST() member
341 uint64_t output = 0; in TEST() local
342 EXPECT_EQ(cases[i].success, StringToUint64(cases[i].input, &output)); in TEST()
343 EXPECT_EQ(cases[i].output, output); in TEST()
346 output = 0; in TEST()
347 EXPECT_EQ(cases[i].success, StringToUint64(utf16_input, &output)); in TEST()
348 EXPECT_EQ(cases[i].output, output); in TEST()
356 uint64_t output; in TEST() local
357 EXPECT_FALSE(StringToUint64(input_string, &output)); in TEST()
358 EXPECT_EQ(6U, output); in TEST()
361 output = 0; in TEST()
362 EXPECT_FALSE(StringToUint64(utf16_input, &output)); in TEST()
363 EXPECT_EQ(6U, output); in TEST()
372 size_t output; in TEST() member
410 size_t output = 0; in TEST() local
411 EXPECT_EQ(cases[i].success, StringToSizeT(cases[i].input, &output)); in TEST()
412 EXPECT_EQ(cases[i].output, output); in TEST()
415 output = 0; in TEST()
416 EXPECT_EQ(cases[i].success, StringToSizeT(utf16_input, &output)); in TEST()
417 EXPECT_EQ(cases[i].output, output); in TEST()
425 size_t output; in TEST() local
426 EXPECT_FALSE(StringToSizeT(input_string, &output)); in TEST()
427 EXPECT_EQ(6U, output); in TEST()
430 output = 0; in TEST()
431 EXPECT_FALSE(StringToSizeT(utf16_input, &output)); in TEST()
432 EXPECT_EQ(6U, output); in TEST()
438 int64_t output; in TEST() member
473 int output = 0; in TEST() local
474 EXPECT_EQ(cases[i].success, HexStringToInt(cases[i].input, &output)); in TEST()
475 EXPECT_EQ(cases[i].output, output); in TEST()
482 int output; in TEST() local
483 EXPECT_FALSE(HexStringToInt(input_string, &output)); in TEST()
484 EXPECT_EQ(0xc0ffee, output); in TEST()
490 uint32_t output; in TEST() member
538 uint32_t output = 0; in TEST() local
539 EXPECT_EQ(cases[i].success, HexStringToUInt(cases[i].input, &output)); in TEST()
540 EXPECT_EQ(cases[i].output, output); in TEST()
547 uint32_t output; in TEST() local
548 EXPECT_FALSE(HexStringToUInt(input_string, &output)); in TEST()
549 EXPECT_EQ(0xc0ffeeU, output); in TEST()
555 int64_t output; in TEST() member
597 int64_t output = 0; in TEST() local
598 EXPECT_EQ(cases[i].success, HexStringToInt64(cases[i].input, &output)); in TEST()
599 EXPECT_EQ(cases[i].output, output); in TEST()
606 int64_t output; in TEST() local
607 EXPECT_FALSE(HexStringToInt64(input_string, &output)); in TEST()
608 EXPECT_EQ(0xc0ffee, output); in TEST()
614 uint64_t output; in TEST() member
660 uint64_t output = 0; in TEST() local
661 EXPECT_EQ(cases[i].success, HexStringToUInt64(cases[i].input, &output)); in TEST()
662 EXPECT_EQ(cases[i].output, output); in TEST()
669 uint64_t output; in TEST() local
670 EXPECT_FALSE(HexStringToUInt64(input_string, &output)); in TEST()
671 EXPECT_EQ(0xc0ffeeU, output); in TEST()
677 const char* output; in TEST() member
702 std::vector<uint8_t> output; in TEST() local
704 EXPECT_EQ(cases[i].success, HexStringToBytes(cases[i].input, &output)) << in TEST()
707 compare.push_back(static_cast<uint8_t>(cases[i].output[j])); in TEST()
708 ASSERT_EQ(output.size(), compare.size()) << i << ": " << cases[i].input; in TEST()
709 EXPECT_TRUE(std::equal(output.begin(), output.end(), compare.begin())) << in TEST()
717 double output; in TEST() member
753 double output; in TEST() local
755 EXPECT_EQ(cases[i].success, StringToDouble(cases[i].input, &output)) in TEST()
756 << "for input=" << cases[i].input << "got output=" << output; in TEST()
759 EXPECT_DOUBLE_EQ(cases[i].output, output); in TEST()
767 double output; in TEST() local
768 EXPECT_FALSE(StringToDouble(input_string, &output)); in TEST()
769 EXPECT_DOUBLE_EQ(3.14, output); in TEST()