Home
last modified time | relevance | path

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

/external/libbrillo/brillo/
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.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.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.cc74 std::unique_ptr<Value> SystemMetrics::ToValue() const { in ToValue() function in base::SystemMetrics
79 std::unique_ptr<DictionaryValue> meminfo = memory_info_.ToValue(); in ToValue()
80 std::unique_ptr<DictionaryValue> vmstat = vmstat_info_.ToValue(); in ToValue()
83 res->Set("diskinfo", disk_info_.ToValue()); in ToValue()
86 res->Set("swapinfo", swap_info_.ToValue()); in ToValue()
Dprocess_metrics.h294 std::unique_ptr<DictionaryValue> ToValue() const;
388 std::unique_ptr<DictionaryValue> ToValue() const;
410 std::unique_ptr<Value> ToValue() const;
451 std::unique_ptr<Value> ToValue() const;
488 std::unique_ptr<Value> ToValue() const;
Dprocess_metrics_linux.cc471 std::unique_ptr<DictionaryValue> SystemMemoryInfoKB::ToValue() const { in ToValue() function in base::SystemMemoryInfoKB
636 std::unique_ptr<DictionaryValue> VmStatInfo::ToValue() const { in ToValue() function in base::VmStatInfo
677 std::unique_ptr<Value> SystemDiskInfo::ToValue() const { in ToValue() function in base::SystemDiskInfo
806 std::unique_ptr<Value> SwapInfo::ToValue() const { in ToValue() function in base::SwapInfo