Home
last modified time | relevance | path

Searched refs:ToValue (Results 1 – 8 of 8) sorted by relevance

/external/libbrillo/brillo/
Dvalue_conversion.h106 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(int value);
107 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(bool value);
108 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(double value);
109 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const std::string& value);
112 BRILLO_EXPORT std::unique_ptr<base::Value> ToValue(const char* value);
115 std::unique_ptr<base::Value> ToValue(
119 std::unique_ptr<base::Value> ToValue(const std::vector<T, Alloc>& list) { in ToValue() function
122 result->Append(ToValue(value)); in ToValue()
127 std::unique_ptr<base::Value> ToValue( in ToValue() function
131 result->Set(pair.first, ToValue(pair.second)); in ToValue()
Dvalue_conversion_unittest.cc237 EXPECT_JSON_EQ("1234", *ToValue(1234)); in TEST()
238 EXPECT_JSON_EQ("true", *ToValue(true)); in TEST()
239 EXPECT_JSON_EQ("false", *ToValue(false)); in TEST()
240 EXPECT_JSON_EQ("12.5", *ToValue(12.5)); in TEST()
241 EXPECT_JSON_EQ("'foobar'", *ToValue("foobar")); in TEST()
245 EXPECT_JSON_EQ("[1, 2, 3]", *ToValue(std::vector<int>{1, 2, 3})); in TEST()
246 EXPECT_JSON_EQ("[]", *ToValue(std::vector<int>{})); in TEST()
247 EXPECT_JSON_EQ("[true, false]", *ToValue(std::vector<bool>{true, false})); in TEST()
249 *ToValue(std::vector<std::string>{"foo", "bar"})); in TEST()
251 *ToValue(std::vector<std::vector<int>>{{1, 2}, {3}})); in TEST()
[all …]
Dvalue_conversion.cc40 std::unique_ptr<base::Value> ToValue(int value) { in ToValue() function
44 std::unique_ptr<base::Value> ToValue(bool value) { in ToValue() function
48 std::unique_ptr<base::Value> ToValue(double value) { in ToValue() function
52 std::unique_ptr<base::Value> ToValue(const char* value) { in ToValue() function
56 std::unique_ptr<base::Value> ToValue(const std::string& value) { in ToValue() function
/external/libchrome/base/process/
Dprocess_metrics.cc34 std::unique_ptr<Value> SystemMetrics::ToValue() const { in ToValue() function in base::SystemMetrics
39 res->Set("meminfo", memory_info_.ToValue()); in ToValue()
40 res->Set("diskinfo", disk_info_.ToValue()); in ToValue()
43 res->Set("swapinfo", swap_info_.ToValue()); in ToValue()
Dprocess_metrics.h270 std::unique_ptr<Value> ToValue() const;
354 std::unique_ptr<Value> ToValue() const;
391 std::unique_ptr<Value> ToValue() const;
415 std::unique_ptr<Value> ToValue() const;
Dprocess_metrics_linux.cc565 std::unique_ptr<Value> SystemMemoryInfoKB::ToValue() const { in ToValue() function in base::SystemMemoryInfoKB
785 std::unique_ptr<Value> SystemDiskInfo::ToValue() const { in ToValue() function in base::SystemDiskInfo
911 std::unique_ptr<Value> SwapInfo::ToValue() const { in ToValue() function in base::SwapInfo
/external/v8/tools/clang/value_cleanup/tests/
Dlist-value-append-original.cc23 std::unique_ptr<base::Value> ToValue() { return nullptr; } in ToValue() function
36 list.Append(thing.ToValue().release()); in F()
Dlist-value-append-expected.cc23 std::unique_ptr<base::Value> ToValue() { return nullptr; } in ToValue() function
36 list.Append(thing.ToValue()); in F()