Lines Matching refs:output
73 std::string output;
82 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input));
91 std::string output;
105 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input));
111 int output;
141 int output = cases[i].output ^ 1; // Ensure StringToInt wrote something.
142 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output));
143 EXPECT_EQ(cases[i].output, output);
146 output = cases[i].output ^ 1; // Ensure StringToInt wrote something.
147 EXPECT_EQ(cases[i].success, StringToInt(utf16_input, &output));
148 EXPECT_EQ(cases[i].output, output);
156 int output;
157 EXPECT_FALSE(StringToInt(input_string, &output));
158 EXPECT_EQ(6, output);
161 output = 0;
162 EXPECT_FALSE(StringToInt(utf16_input, &output));
163 EXPECT_EQ(6, output);
165 output = 0;
167 EXPECT_FALSE(StringToInt(string16(negative_wide_input), &output));
168 EXPECT_EQ(0, output);
174 unsigned output;
205 unsigned output =
206 cases[i].output ^ 1; // Ensure StringToUint wrote something.
207 EXPECT_EQ(cases[i].success, StringToUint(cases[i].input, &output));
208 EXPECT_EQ(cases[i].output, output);
211 output = cases[i].output ^ 1; // Ensure StringToUint wrote something.
212 EXPECT_EQ(cases[i].success, StringToUint(utf16_input, &output));
213 EXPECT_EQ(cases[i].output, output);
221 unsigned output;
222 EXPECT_FALSE(StringToUint(input_string, &output));
223 EXPECT_EQ(6U, output);
226 output = 0;
227 EXPECT_FALSE(StringToUint(utf16_input, &output));
228 EXPECT_EQ(6U, output);
230 output = 0;
232 EXPECT_FALSE(StringToUint(string16(negative_wide_input), &output));
233 EXPECT_EQ(0U, output);
239 int64_t output;
276 int64_t output = 0;
277 EXPECT_EQ(cases[i].success, StringToInt64(cases[i].input, &output));
278 EXPECT_EQ(cases[i].output, output);
281 output = 0;
282 EXPECT_EQ(cases[i].success, StringToInt64(utf16_input, &output));
283 EXPECT_EQ(cases[i].output, output);
291 int64_t output;
292 EXPECT_FALSE(StringToInt64(input_string, &output));
293 EXPECT_EQ(6, output);
296 output = 0;
297 EXPECT_FALSE(StringToInt64(utf16_input, &output));
298 EXPECT_EQ(6, output);
304 uint64_t output;
343 uint64_t output = 0;
344 EXPECT_EQ(cases[i].success, StringToUint64(cases[i].input, &output));
345 EXPECT_EQ(cases[i].output, output);
348 output = 0;
349 EXPECT_EQ(cases[i].success, StringToUint64(utf16_input, &output));
350 EXPECT_EQ(cases[i].output, output);
358 uint64_t output;
359 EXPECT_FALSE(StringToUint64(input_string, &output));
360 EXPECT_EQ(6U, output);
363 output = 0;
364 EXPECT_FALSE(StringToUint64(utf16_input, &output));
365 EXPECT_EQ(6U, output);
374 size_t output;
412 size_t output = 0;
413 EXPECT_EQ(cases[i].success, StringToSizeT(cases[i].input, &output));
414 EXPECT_EQ(cases[i].output, output);
417 output = 0;
418 EXPECT_EQ(cases[i].success, StringToSizeT(utf16_input, &output));
419 EXPECT_EQ(cases[i].output, output);
427 size_t output;
428 EXPECT_FALSE(StringToSizeT(input_string, &output));
429 EXPECT_EQ(6U, output);
432 output = 0;
433 EXPECT_FALSE(StringToSizeT(utf16_input, &output));
434 EXPECT_EQ(6U, output);
440 int64_t output;
475 int output = 0;
476 EXPECT_EQ(cases[i].success, HexStringToInt(cases[i].input, &output));
477 EXPECT_EQ(cases[i].output, output);
484 int output;
485 EXPECT_FALSE(HexStringToInt(input_string, &output));
486 EXPECT_EQ(0xc0ffee, output);
492 uint32_t output;
540 uint32_t output = 0;
541 EXPECT_EQ(cases[i].success, HexStringToUInt(cases[i].input, &output));
542 EXPECT_EQ(cases[i].output, output);
549 uint32_t output;
550 EXPECT_FALSE(HexStringToUInt(input_string, &output));
551 EXPECT_EQ(0xc0ffeeU, output);
557 int64_t output;
599 int64_t output = 0;
600 EXPECT_EQ(cases[i].success, HexStringToInt64(cases[i].input, &output));
601 EXPECT_EQ(cases[i].output, output);
608 int64_t output;
609 EXPECT_FALSE(HexStringToInt64(input_string, &output));
610 EXPECT_EQ(0xc0ffee, output);
616 uint64_t output;
662 uint64_t output = 0;
663 EXPECT_EQ(cases[i].success, HexStringToUInt64(cases[i].input, &output));
664 EXPECT_EQ(cases[i].output, output);
671 uint64_t output;
672 EXPECT_FALSE(HexStringToUInt64(input_string, &output));
673 EXPECT_EQ(0xc0ffeeU, output);
679 const char* output;
704 std::vector<uint8_t> output;
706 EXPECT_EQ(cases[i].success, HexStringToBytes(cases[i].input, &output)) <<
709 compare.push_back(static_cast<uint8_t>(cases[i].output[j]));
710 ASSERT_EQ(output.size(), compare.size()) << i << ": " << cases[i].input;
711 EXPECT_TRUE(std::equal(output.begin(), output.end(), compare.begin())) <<
719 double output;
755 double output;
757 EXPECT_EQ(cases[i].success, StringToDouble(cases[i].input, &output))
758 << "for input=" << cases[i].input << "got output=" << output;
761 EXPECT_DOUBLE_EQ(cases[i].output, output);
769 double output;
770 EXPECT_FALSE(StringToDouble(input_string, &output));
771 EXPECT_DOUBLE_EQ(3.14, output);