Home
last modified time | relevance | path

Searched refs:FundamentalValue (Results 1 – 15 of 15) sorted by relevance

/external/libchrome/base/json/
Djson_writer_unittest.cc28 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(42), &output_js)); in TEST()
32 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(true), &output_js)); in TEST()
36 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(1.0), &output_js)); in TEST()
40 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(0.2), &output_js)); in TEST()
44 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(-0.8), &output_js)); in TEST()
120 binary_list.Append(make_scoped_ptr(new FundamentalValue(5))); in TEST()
122 binary_list.Append(make_scoped_ptr(new FundamentalValue(2))); in TEST()
148 FundamentalValue double_value(1e10); in TEST()
Djson_parser.cc889 return new FundamentalValue(num_int); in ConsumeNumber()
894 return new FundamentalValue(num_double); in ConsumeNumber()
930 return new FundamentalValue(true); in ConsumeLiteral()
941 return new FundamentalValue(false); in ConsumeLiteral()
/external/libweave/third_party/chromium/base/json/
Djson_writer_unittest.cc30 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(42), &output_js)); in TEST()
34 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(true), &output_js)); in TEST()
38 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(1.0), &output_js)); in TEST()
42 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(0.2), &output_js)); in TEST()
46 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(-0.8), &output_js)); in TEST()
122 binary_list.Append(make_scoped_ptr(new FundamentalValue(5))); in TEST()
124 binary_list.Append(make_scoped_ptr(new FundamentalValue(2))); in TEST()
150 FundamentalValue double_value(1e10); in TEST()
Djson_parser.cc884 return new FundamentalValue(num_int); in ConsumeNumber()
889 return new FundamentalValue(num_double); in ConsumeNumber()
925 return new FundamentalValue(true); in ConsumeLiteral()
936 return new FundamentalValue(false); in ConsumeLiteral()
/external/libweave/third_party/chromium/base/
Dvalues.cc172 FundamentalValue::FundamentalValue(bool in_value) in FundamentalValue() function in base::FundamentalValue
176 FundamentalValue::FundamentalValue(int in_value) in FundamentalValue() function in base::FundamentalValue
180 FundamentalValue::FundamentalValue(double in_value) in FundamentalValue() function in base::FundamentalValue
189 FundamentalValue::~FundamentalValue() { in ~FundamentalValue()
192 bool FundamentalValue::GetAsBoolean(bool* out_value) const { in GetAsBoolean()
198 bool FundamentalValue::GetAsInteger(int* out_value) const { in GetAsInteger()
204 bool FundamentalValue::GetAsDouble(double* out_value) const { in GetAsDouble()
212 FundamentalValue* FundamentalValue::DeepCopy() const { in DeepCopy()
215 return new FundamentalValue(boolean_value_); in DeepCopy()
218 return new FundamentalValue(integer_value_); in DeepCopy()
[all …]
Dvalues_unittest.cc63 mixed_list->Set(0, make_scoped_ptr(new FundamentalValue(true))); in TEST()
64 mixed_list->Set(1, make_scoped_ptr(new FundamentalValue(42))); in TEST()
65 mixed_list->Set(2, make_scoped_ptr(new FundamentalValue(88.8))); in TEST()
101 base::FundamentalValue sought_value(42); in TEST()
102 base::FundamentalValue not_found_value(false); in TEST()
386 scoped_ptr<FundamentalValue> scoped_bool(new FundamentalValue(true)); in TEST()
387 FundamentalValue* original_bool = scoped_bool.get(); in TEST()
389 scoped_ptr<FundamentalValue> scoped_int(new FundamentalValue(42)); in TEST()
390 FundamentalValue* original_int = scoped_int.get(); in TEST()
392 scoped_ptr<FundamentalValue> scoped_double(new FundamentalValue(3.14)); in TEST()
[all …]
Dvalues.h39 class FundamentalValue; variable
123 class BASE_EXPORT FundamentalValue : public Value {
125 explicit FundamentalValue(bool in_value);
126 explicit FundamentalValue(int in_value);
127 explicit FundamentalValue(double in_value);
128 ~FundamentalValue() override;
136 FundamentalValue* DeepCopy() const override;
506 const FundamentalValue& value) {
/external/libchrome/base/
Dvalues.cc176 FundamentalValue::FundamentalValue(bool in_value) in FundamentalValue() function in base::FundamentalValue
180 FundamentalValue::FundamentalValue(int in_value) in FundamentalValue() function in base::FundamentalValue
184 FundamentalValue::FundamentalValue(double in_value) in FundamentalValue() function in base::FundamentalValue
193 FundamentalValue::~FundamentalValue() { in ~FundamentalValue()
196 bool FundamentalValue::GetAsBoolean(bool* out_value) const { in GetAsBoolean()
202 bool FundamentalValue::GetAsInteger(int* out_value) const { in GetAsInteger()
208 bool FundamentalValue::GetAsDouble(double* out_value) const { in GetAsDouble()
216 FundamentalValue* FundamentalValue::DeepCopy() const { in DeepCopy()
219 return new FundamentalValue(boolean_value_); in DeepCopy()
222 return new FundamentalValue(integer_value_); in DeepCopy()
[all …]
Dvalues_unittest.cc63 mixed_list->Set(0, make_scoped_ptr(new FundamentalValue(true))); in TEST()
64 mixed_list->Set(1, make_scoped_ptr(new FundamentalValue(42))); in TEST()
65 mixed_list->Set(2, make_scoped_ptr(new FundamentalValue(88.8))); in TEST()
101 base::FundamentalValue sought_value(42); in TEST()
102 base::FundamentalValue not_found_value(false); in TEST()
400 scoped_ptr<FundamentalValue> scoped_bool(new FundamentalValue(true)); in TEST()
401 FundamentalValue* original_bool = scoped_bool.get(); in TEST()
403 scoped_ptr<FundamentalValue> scoped_int(new FundamentalValue(42)); in TEST()
404 FundamentalValue* original_int = scoped_int.get(); in TEST()
406 scoped_ptr<FundamentalValue> scoped_double(new FundamentalValue(3.14)); in TEST()
[all …]
Dvalues.h40 class FundamentalValue; variable
125 class BASE_EXPORT FundamentalValue : public Value {
127 explicit FundamentalValue(bool in_value);
128 explicit FundamentalValue(int in_value);
129 explicit FundamentalValue(double in_value);
130 ~FundamentalValue() override;
138 FundamentalValue* DeepCopy() const override;
546 const FundamentalValue& value) {
/external/libchrome/dbus/
Dvalues_util.cc99 result = new base::FundamentalValue(value); in PopDataAsValue()
105 result = new base::FundamentalValue(value); in PopDataAsValue()
111 result = new base::FundamentalValue(value); in PopDataAsValue()
117 result = new base::FundamentalValue(value); in PopDataAsValue()
123 result = new base::FundamentalValue(value); in PopDataAsValue()
129 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
137 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
146 result = new base::FundamentalValue(static_cast<double>(value)); in PopDataAsValue()
153 result = new base::FundamentalValue(value); in PopDataAsValue()
/external/libbrillo/brillo/
Dvalue_conversion.cc41 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue()
45 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue()
49 return std::unique_ptr<base::Value>{new base::FundamentalValue{value}}; in ToValue()
/external/libchrome/base/trace_event/
Dtrace_event_argument_unittest.cc99 FundamentalValue int_value(42); in TEST()
100 FundamentalValue bool_value(true); in TEST()
101 FundamentalValue double_value(42.0f); in TEST()
/external/libweave/examples/daemon/sample/
Dsample.cc110 base::FundamentalValue{++ping_count_}, nullptr); in OnPingCommand()
/external/libweave/src/
Dcomponent_manager_unittest.cc1081 base::FundamentalValue p2(2); in TEST_F()