Lines Matching refs:output
63 std::string output; in TEST() member
72 EXPECT_EQ(cases[i].output, Uint64ToString(cases[i].input)); in TEST()
78 int output; in TEST() member
109 int output = 0; in TEST() local
110 EXPECT_EQ(cases[i].success, StringToInt(cases[i].input, &output)); in TEST()
111 EXPECT_EQ(cases[i].output, output); in TEST()
112 output = 0; in TEST()
115 &output)); in TEST()
116 EXPECT_EQ(cases[i].output, output); in TEST()
117 output = 0; in TEST()
119 ascii_chars, ascii_chars + cases[i].input.length(), &output)); in TEST()
120 EXPECT_EQ(cases[i].output, output); in TEST()
124 output = 0; in TEST()
125 EXPECT_EQ(cases[i].success, StringToInt(utf16_input, &output)); in TEST()
126 EXPECT_EQ(cases[i].output, output); in TEST()
127 output = 0; in TEST()
130 &output)); in TEST()
131 EXPECT_EQ(cases[i].output, output); in TEST()
132 output = 0; in TEST()
134 utf16_chars, utf16_chars + utf16_input.length(), &output)); in TEST()
135 EXPECT_EQ(cases[i].output, output); in TEST()
143 int output; in TEST() local
144 EXPECT_FALSE(StringToInt(input_string, &output)); in TEST()
145 EXPECT_EQ(6, output); in TEST()
146 output = 0; in TEST()
147 EXPECT_FALSE(StringToInt(input_string.begin(), input_string.end(), &output)); in TEST()
148 EXPECT_EQ(6, output); in TEST()
149 output = 0; in TEST()
150 EXPECT_FALSE(StringToInt(input, input + arraysize(input), &output)); in TEST()
151 EXPECT_EQ(6, output); in TEST()
155 output = 0; in TEST()
156 EXPECT_FALSE(StringToInt(utf16_input, &output)); in TEST()
157 EXPECT_EQ(6, output); in TEST()
158 output = 0; in TEST()
159 EXPECT_FALSE(StringToInt(utf16_input.begin(), utf16_input.end(), &output)); in TEST()
160 EXPECT_EQ(6, output); in TEST()
161 output = 0; in TEST()
164 &output)); in TEST()
165 EXPECT_EQ(6, output); in TEST()
167 output = 0; in TEST()
169 EXPECT_FALSE(StringToInt(string16(negative_wide_input), &output)); in TEST()
170 EXPECT_EQ(0, output); in TEST()
176 int64 output; in TEST() member
214 int64 output = 0; in TEST() local
215 EXPECT_EQ(cases[i].success, StringToInt64(cases[i].input, &output)); in TEST()
216 EXPECT_EQ(cases[i].output, output); in TEST()
217 output = 0; in TEST()
220 &output)); in TEST()
221 EXPECT_EQ(cases[i].output, output); in TEST()
222 output = 0; in TEST()
224 ascii_chars, ascii_chars + cases[i].input.length(), &output)); in TEST()
225 EXPECT_EQ(cases[i].output, output); in TEST()
229 output = 0; in TEST()
230 EXPECT_EQ(cases[i].success, StringToInt64(utf16_input, &output)); in TEST()
231 EXPECT_EQ(cases[i].output, output); in TEST()
232 output = 0; in TEST()
235 &output)); in TEST()
236 EXPECT_EQ(cases[i].output, output); in TEST()
237 output = 0; in TEST()
239 utf16_chars, utf16_chars + utf16_input.length(), &output)); in TEST()
240 EXPECT_EQ(cases[i].output, output); in TEST()
248 int64 output; in TEST() local
249 EXPECT_FALSE(StringToInt64(input_string, &output)); in TEST()
250 EXPECT_EQ(6, output); in TEST()
251 output = 0; in TEST()
254 &output)); in TEST()
255 EXPECT_EQ(6, output); in TEST()
256 output = 0; in TEST()
257 EXPECT_FALSE(StringToInt64(input, input + arraysize(input), &output)); in TEST()
258 EXPECT_EQ(6, output); in TEST()
262 output = 0; in TEST()
263 EXPECT_FALSE(StringToInt64(utf16_input, &output)); in TEST()
264 EXPECT_EQ(6, output); in TEST()
265 output = 0; in TEST()
266 EXPECT_FALSE(StringToInt64(utf16_input.begin(), utf16_input.end(), &output)); in TEST()
267 EXPECT_EQ(6, output); in TEST()
268 output = 0; in TEST()
271 &output)); in TEST()
272 EXPECT_EQ(6, output); in TEST()
278 int output; in TEST() member
313 int output = 0; in TEST() local
314 EXPECT_EQ(cases[i].success, HexStringToInt(cases[i].input, &output)); in TEST()
315 EXPECT_EQ(cases[i].output, output); in TEST()
316 output = 0; in TEST()
319 &output)); in TEST()
320 EXPECT_EQ(cases[i].output, output); in TEST()
321 output = 0; in TEST()
323 ascii_chars, ascii_chars + cases[i].input.length(), &output)); in TEST()
324 EXPECT_EQ(cases[i].output, output); in TEST()
331 int output; in TEST() local
332 EXPECT_FALSE(HexStringToInt(input_string, &output)); in TEST()
333 EXPECT_EQ(0xc0ffee, output); in TEST()
334 output = 0; in TEST()
337 &output)); in TEST()
338 EXPECT_EQ(0xc0ffee, output); in TEST()
339 output = 0; in TEST()
340 EXPECT_FALSE(HexStringToInt(input, input + arraysize(input), &output)); in TEST()
341 EXPECT_EQ(0xc0ffee, output); in TEST()
347 const char* output; in TEST() member
372 std::vector<uint8> output; in TEST() local
374 EXPECT_EQ(cases[i].success, HexStringToBytes(cases[i].input, &output)) << in TEST()
377 compare.push_back(static_cast<uint8>(cases[i].output[j])); in TEST()
378 ASSERT_EQ(output.size(), compare.size()) << i << ": " << cases[i].input; in TEST()
379 EXPECT_TRUE(std::equal(output.begin(), output.end(), compare.begin())) << in TEST()
387 double output; in TEST() member
421 double output; in TEST() local
422 EXPECT_EQ(cases[i].success, StringToDouble(cases[i].input, &output)); in TEST()
423 EXPECT_DOUBLE_EQ(cases[i].output, output); in TEST()
431 double output; in TEST() local
432 EXPECT_FALSE(StringToDouble(input_string, &output)); in TEST()
433 EXPECT_DOUBLE_EQ(3.14, output); in TEST()