Searched refs:ToValue (Results 1 – 8 of 8) sorted by relevance
/external/libbrillo/brillo/ |
D | value_conversion.h | 106 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()
|
D | value_conversion_unittest.cc | 237 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 …]
|
D | value_conversion.cc | 40 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/ |
D | process_metrics.cc | 34 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()
|
D | process_metrics.h | 270 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;
|
D | process_metrics_linux.cc | 565 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/ |
D | list-value-append-original.cc | 23 std::unique_ptr<base::Value> ToValue() { return nullptr; } in ToValue() function 36 list.Append(thing.ToValue().release()); in F()
|
D | list-value-append-expected.cc | 23 std::unique_ptr<base::Value> ToValue() { return nullptr; } in ToValue() function 36 list.Append(thing.ToValue()); in F()
|