Home
last modified time | relevance | path

Searched refs:NumberToString (Results 1 – 25 of 177) sorted by relevance

12345678

/external/leveldb/util/
Dlogging_test.cc15 TEST(Logging, NumberToString) { in TEST() argument
16 ASSERT_EQ("0", NumberToString(0)); in TEST()
17 ASSERT_EQ("1", NumberToString(1)); in TEST()
18 ASSERT_EQ("9", NumberToString(9)); in TEST()
20 ASSERT_EQ("10", NumberToString(10)); in TEST()
21 ASSERT_EQ("11", NumberToString(11)); in TEST()
22 ASSERT_EQ("19", NumberToString(19)); in TEST()
23 ASSERT_EQ("99", NumberToString(99)); in TEST()
25 ASSERT_EQ("100", NumberToString(100)); in TEST()
26 ASSERT_EQ("109", NumberToString(109)); in TEST()
[all …]
/external/libchrome/base/strings/
Dstring_number_conversions.h44 BASE_EXPORT std::string NumberToString(int value);
46 BASE_EXPORT std::string NumberToString(unsigned int value);
48 BASE_EXPORT std::string NumberToString(long value);
50 BASE_EXPORT std::string NumberToString(unsigned long value);
52 BASE_EXPORT std::string NumberToString(long long value);
54 BASE_EXPORT std::string NumberToString(unsigned long long value);
56 BASE_EXPORT std::string NumberToString(double value);
64 return NumberToString(value); in IntToString()
70 return NumberToString(value); in UintToString()
76 return NumberToString(value); in Int64ToString()
Dstring_number_conversions_fuzzer.cc55 base::NumberToString(out_int); in LLVMFuzzerTestOneInput()
57 base::NumberToString(out_uint); in LLVMFuzzerTestOneInput()
59 base::NumberToString(out_int64); in LLVMFuzzerTestOneInput()
61 base::NumberToString(out_uint64); in LLVMFuzzerTestOneInput()
63 base::NumberToString(out_double); in LLVMFuzzerTestOneInput()
Dstring_number_conversions_unittest.cc36 TEST(StringNumberConversionsTest, NumberToString) { in TEST() argument
56 EXPECT_EQ(NumberToString(test.num), test.sexpected); in TEST()
58 EXPECT_EQ(NumberToString(static_cast<unsigned>(test.num)), test.uexpected); in TEST()
64 EXPECT_EQ(NumberToString(test.num), test.sexpected); in TEST()
66 EXPECT_EQ(NumberToString(static_cast<uint64_t>(test.num)), test.uexpected); in TEST()
84 EXPECT_EQ(cases[i].output, NumberToString(cases[i].input)); in TEST()
107 EXPECT_EQ(cases[i].output, NumberToString(cases[i].input)); in TEST()
820 EXPECT_EQ(cases[i].expected, NumberToString(cases[i].input)); in TEST()
828 EXPECT_EQ("1335179083776.0", NumberToString(input)); in TEST()
833 EXPECT_EQ("1334890332160.0", NumberToString(input)); in TEST()
Dstring_number_conversions.cc314 std::string NumberToString(int value) { in NumberToString() function
322 std::string NumberToString(unsigned value) { in NumberToString() function
330 std::string NumberToString(long value) { in NumberToString() function
338 std::string NumberToString(unsigned long value) { in NumberToString() function
346 std::string NumberToString(long long value) { in NumberToString() function
354 std::string NumberToString(unsigned long long value) { in NumberToString() function
362 std::string NumberToString(double value) { in NumberToString() function
/external/cronet/base/strings/
Dstring_number_conversions.h40 BASE_EXPORT std::string NumberToString(int value);
42 BASE_EXPORT std::string NumberToString(unsigned int value);
44 BASE_EXPORT std::string NumberToString(long value);
46 BASE_EXPORT std::string NumberToString(unsigned long value);
48 BASE_EXPORT std::string NumberToString(long long value);
50 BASE_EXPORT std::string NumberToString(unsigned long long value);
52 BASE_EXPORT std::string NumberToString(double value);
Dstring_number_conversions_fuzzer.cc39 data, size, &base::NumberToString, string_to_num); in CheckRoundtrips()
106 base::NumberToString(out_int); in LLVMFuzzerTestOneInput()
108 base::NumberToString(out_uint); in LLVMFuzzerTestOneInput()
110 base::NumberToString(out_int64); in LLVMFuzzerTestOneInput()
112 base::NumberToString(out_uint64); in LLVMFuzzerTestOneInput()
114 base::NumberToString(out_double); in LLVMFuzzerTestOneInput()
Dstring_number_conversions.cc17 std::string NumberToString(int value) { in NumberToString() function
25 std::string NumberToString(unsigned value) { in NumberToString() function
33 std::string NumberToString(long value) { in NumberToString() function
41 std::string NumberToString(unsigned long value) { in NumberToString() function
49 std::string NumberToString(long long value) { in NumberToString() function
57 std::string NumberToString(unsigned long long value) { in NumberToString() function
65 std::string NumberToString(double value) { in NumberToString() function
Dstring_number_conversions_unittest.cc35 TEST(StringNumberConversionsTest, NumberToString) { in TEST() argument
55 EXPECT_EQ(NumberToString(test.num), test.sexpected); in TEST()
57 EXPECT_EQ(NumberToString(static_cast<unsigned>(test.num)), test.uexpected); in TEST()
62 EXPECT_EQ(NumberToString(test.num), test.sexpected); in TEST()
64 EXPECT_EQ(NumberToString(static_cast<uint64_t>(test.num)), test.uexpected); in TEST()
82 EXPECT_EQ(i.output, NumberToString(i.input)); in TEST()
105 EXPECT_EQ(i.output, NumberToString(i.input)); in TEST()
906 EXPECT_EQ(i.expected, NumberToString(i.input)); in TEST()
914 EXPECT_EQ("1.335179083776e+12", NumberToString(input)); in TEST()
919 EXPECT_EQ("1.33489033216e+12", NumberToString(input)); in TEST()
/external/cronet/base/json/
Djson_perftest.cc58 root.Set("Dict" + base::NumberToString(i), next.Clone()); in GenerateLayeredDict()
69 std::string description = "Breadth: " + base::NumberToString(breadth) + in TestWriteAndRead()
70 ", Depth: " + base::NumberToString(depth); in TestWriteAndRead()
77 auto reporter = SetUpReporter("breadth_" + base::NumberToString(breadth) + in TestWriteAndRead()
78 "_depth_" + base::NumberToString(depth)); in TestWriteAndRead()
/external/cronet/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc50 std::string NumberToString(numeric_type value);
64 std::string NumberToString(numeric_type value) { in NumberToString() function
133 return NumberToString(field->default_value_int32()); in DefaultValueForField()
135 return NumberToString(field->default_value_int64()); in DefaultValueForField()
137 return NumberToString(field->default_value_uint32()); in DefaultValueForField()
139 return NumberToString(field->default_value_uint64()); in DefaultValueForField()
141 return NumberToString(field->default_value_float()); in DefaultValueForField()
143 return NumberToString(field->default_value_double()); in DefaultValueForField()
147 return NumberToString(field->default_value_enum()->number()); in DefaultValueForField()
184 "number", NumberToString(field->number())); in GenerateField()
[all …]
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc50 std::string NumberToString(numeric_type value);
64 std::string NumberToString(numeric_type value) { in NumberToString() function
133 return NumberToString(field->default_value_int32()); in DefaultValueForField()
135 return NumberToString(field->default_value_int64()); in DefaultValueForField()
137 return NumberToString(field->default_value_uint32()); in DefaultValueForField()
139 return NumberToString(field->default_value_uint64()); in DefaultValueForField()
141 return NumberToString(field->default_value_float()); in DefaultValueForField()
143 return NumberToString(field->default_value_double()); in DefaultValueForField()
147 return NumberToString(field->default_value_enum()->number()); in DefaultValueForField()
184 "number", NumberToString(field->number())); in GenerateField()
[all …]
/external/cronet/components/nacl/browser/
Dpnacl_translation_cache.cc26 using base::NumberToString;
420 retval += NumberToString(info.abi_version) + ";" + in GetKey()
421 "opt:" + NumberToString(info.opt_level) + in GetKey()
438 retval += "modified:" + NumberToString(exploded.year) + ":" + in GetKey()
439 NumberToString(exploded.month) + ":" + in GetKey()
440 NumberToString(exploded.day_of_month) + ":" + in GetKey()
441 NumberToString(exploded.hour) + ":" + in GetKey()
442 NumberToString(exploded.minute) + ":" + in GetKey()
443 NumberToString(exploded.second) + ":" + in GetKey()
444 NumberToString(exploded.millisecond) + ":UTC;"; in GetKey()
/external/cronet/components/metrics/
Dmetrics_service_client_unittest.cc43 base::NumberToString(specified_upload_sec)); in TEST_F()
52 base::NumberToString(specified_upload_sec)); in TEST_F()
65 base::NumberToString(too_short_upload_sec)); in TEST_F()
Dentropy_state_unittest.cc69 EXPECT_TRUE(base::EndsWith(high_source, base::NumberToString(new_low_source), in TEST_F()
88 EXPECT_TRUE(base::EndsWith(high_source, base::NumberToString(new_low_source), in TEST_F()
109 EXPECT_TRUE(base::EndsWith(high_source, base::NumberToString(old_low_source), in TEST_F()
133 EXPECT_TRUE(base::EndsWith(high_source, base::NumberToString(old_low_source), in TEST_F()
/external/cronet/net/base/
Dparse_number_unittest.cc21 std::string result = base::NumberToString(value); in CreateOverflowString()
33 std::string result = base::NumberToString(value); in CreateUnderflowString()
151 ExpectParseIntSuccess<T>(func, base::NumberToString(value), format, value); in TestParseIntUsingFormat()
164 func, base::NumberToString(std::numeric_limits<T>::max()) + " ", format, in TestParseIntUsingFormat()
174 std::string str_value = base::NumberToString(value); in TestParseIntUsingFormat()
Dproxy_server_unittest.cc74 SCOPED_TRACE(base::NumberToString(i) + ": " + tests[i].input_host + ":" + in TEST()
75 base::NumberToString(tests[i].input_port.value_or(-1))); in TEST()
106 SCOPED_TRACE(base::NumberToString(i) + ": " + tests[i]); in TEST()
122 SCOPED_TRACE(base::NumberToString(i) + ": " + tests[i]); in TEST()
/external/cronet/base/process/
Dinternal_aix.cc37 return FilePath(kProcDir).Append(NumberToString(pid)); in GetProcPidDir()
90 proc_stats->push_back(NumberToString(stats_data.pr_pid)); in ParseProcStats()
96 proc_stats->push_back(NumberToString(stats_data.pr_ppid)); in ParseProcStats()
99 proc_stats->push_back(NumberToString(stats_data.pr_pgid)); in ParseProcStats()
/external/cronet/net/tools/transport_security_state_generator/
Dinput_file_parsers.cc369 LOG(ERROR) << "Could not parse entry " << base::NumberToString(i) in ParseJSON()
376 << base::NumberToString(i) << " from the input pins JSON"; in ParseJSON()
381 LOG(ERROR) << "The hostname for entry " << base::NumberToString(i) in ParseJSON()
397 << base::NumberToString(i) << " from the input pins JSON"; in ParseJSON()
422 LOG(ERROR) << "Could not parse entry " << base::NumberToString(i) in ParseJSON()
431 << base::NumberToString(i) << " from the input HSTS JSON"; in ParseJSON()
437 LOG(ERROR) << "The hostname for entry " << base::NumberToString(i) in ParseJSON()
500 LOG(ERROR) << "Could not parse pinset " << base::NumberToString(i) in ParseJSON()
508 << base::NumberToString(i) << " from the input JSON"; in ParseJSON()
/external/angle/src/tests/perf_tests/third_party/perf/
Dperf_test.cc44 std::string NumberToString(size_t value) in NumberToString() function
49 std::string NumberToString(double value) in NumberToString() function
99 PrintResultsImpl(measurement, modifier, trace, NumberToString(value), std::string(), in PrintResult()
110 PrintResultsImpl(measurement, modifier, trace, NumberToString(value), std::string(), in PrintResult()
122 output += ResultsToString(measurement, modifier, trace, NumberToString(value), std::string(), in AppendResult()
Dangle-mods.patch135 -+std::string NumberToString(size_t value) {
139 -+std::string NumberToString(double value) {
159 -- PrintResultsImpl(measurement, modifier, trace, base::NumberToString(value),
160 -+ PrintResultsImpl(measurement, modifier, trace, NumberToString(value),
168 -- PrintResultsImpl(measurement, modifier, trace, base::NumberToString(value),
169 -+ PrintResultsImpl(measurement, modifier, trace, NumberToString(value),
177 -- ResultsToString(measurement, modifier, trace, base::NumberToString(value),
178 -+ ResultsToString(measurement, modifier, trace, NumberToString(value),
432 +std::string NumberToString(size_t value)
437 +std::string NumberToString(double value)
[all …]
/external/libchrome/libchrome_tools/patch/
Ddmg_fp.patch17 std::string NumberToString(double value) {
150 - EXPECT_EQ("1335179083776", NumberToString(input));
151 + EXPECT_EQ("1335179083776.0", NumberToString(input));
156 - EXPECT_EQ("1334890332160", NumberToString(input));
157 + EXPECT_EQ("1334890332160.0", NumberToString(input));
/external/cronet/base/metrics/
Dfield_trial_params.cc162 base::NumberToString(default_value)); in GetFieldTrialParamByFeatureAsInt()
178 base::NumberToString(default_value)); in GetFieldTrialParamByFeatureAsDouble()
215 base::NumberToString(default_value.InSecondsF()) + " s"); in GetFieldTrialParamByFeatureAsTimeDelta()
248 base::NumberToString(default_value_as_int)); in LogInvalidEnumValue()
/external/cronet/base/functional/
Dcallback_unittest.cc332 *s += base::NumberToString(*a) + base::NumberToString(*b); in Outer()
339 *s += base::NumberToString(a) + base::NumberToString(b); in Outer()
355 *s += base::NumberToString(*a) + base::NumberToString(*b); in Outer()
360 *s += base::NumberToString(a) + base::NumberToString(b); in Outer()
375 *s += base::NumberToString(a); in Inner()
395 *s += base::NumberToString(a); in Inner()
/external/libchrome/mojo/public/cpp/platform/
Dplatform_channel.cc174 *value = base::NumberToString( in PrepareToPassRemoteEndpoint()
179 *value = base::NumberToString(id); in PrepareToPassRemoteEndpoint()
184 *value = base::NumberToString(mapped_fd); in PrepareToPassRemoteEndpoint()
198 *value = base::NumberToString(target_fd); in PrepareToPassRemoteEndpoint()

12345678