Searched refs:BinaryValue (Results 1 – 7 of 7) sorted by relevance
/external/libchrome/base/json/ |
D | json_writer_unittest.cc | 114 std::unique_ptr<Value> root(BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 121 binary_list.Append(BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 123 binary_list.Append(BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 125 binary_list.Append(BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 132 binary_dict.Set("a", BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 134 binary_dict.Set("c", BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST() 136 binary_dict.Set("e", BinaryValue::CreateWithCopiedBuffer("asdf", 4)); in TEST()
|
/external/libchrome/base/ |
D | values.h | 38 class BinaryValue; variable 88 virtual bool GetAsBinary(const BinaryValue** out_value) const; 171 class BASE_EXPORT BinaryValue: public Value { 174 BinaryValue(); 178 BinaryValue(std::unique_ptr<char[]> buffer, size_t size); 180 ~BinaryValue() override; 185 static std::unique_ptr<BinaryValue> CreateWithCopiedBuffer(const char* buffer, 195 bool GetAsBinary(const BinaryValue** out_value) const override; 196 BinaryValue* DeepCopy() const override; 203 DISALLOW_COPY_AND_ASSIGN(BinaryValue); [all …]
|
D | values.cc | 80 bool Value::GetAsBinary(const BinaryValue**) const { in GetAsBinary() 295 BinaryValue::BinaryValue() in BinaryValue() function in base::BinaryValue 300 BinaryValue::BinaryValue(std::unique_ptr<char[]> buffer, size_t size) in BinaryValue() function in base::BinaryValue 303 BinaryValue::~BinaryValue() { in ~BinaryValue() 307 std::unique_ptr<BinaryValue> BinaryValue::CreateWithCopiedBuffer( in CreateWithCopiedBuffer() 312 return base::MakeUnique<BinaryValue>(std::move(buffer_copy), size); in CreateWithCopiedBuffer() 315 bool BinaryValue::GetAsBinary(const BinaryValue** out_value) const { in GetAsBinary() 321 BinaryValue* BinaryValue::DeepCopy() const { in DeepCopy() 325 bool BinaryValue::Equals(const Value* other) const { in Equals() 328 const BinaryValue* other_binary = static_cast<const BinaryValue*>(other); in Equals() [all …]
|
D | values_unittest.cc | 112 TEST(ValuesTest, BinaryValue) { in TEST() argument 114 std::unique_ptr<BinaryValue> binary(new BinaryValue()); in TEST() 122 binary.reset(new BinaryValue(std::move(buffer), 15)); in TEST() 130 binary = BinaryValue::CreateWithCopiedBuffer(stack_buffer, 42); in TEST() 139 const BinaryValue* narrow_binary = NULL; in TEST() 422 std::unique_ptr<BinaryValue> scoped_binary( in TEST() 423 new BinaryValue(std::move(original_buffer), 42)); in TEST() 424 BinaryValue* original_binary = scoped_binary.get(); in TEST() 510 static_cast<BinaryValue*>(copy_binary)->GetBuffer()); in TEST() 512 static_cast<BinaryValue*>(copy_binary)->GetSize()); in TEST() [all …]
|
/external/libchrome/base/trace_event/ |
D | trace_event_memory_overhead.cc | 87 const BinaryValue* binary_value = nullptr; in AddValue() 89 Add("BinaryValue", sizeof(BinaryValue) + binary_value->GetSize()); in AddValue()
|
/external/libmojo/mojo/common/ |
D | common_custom_types_unittest.cc | 192 dict.Set("some_binary", base::BinaryValue::CreateWithCopiedBuffer("mojo", 4)); in TEST_F() 210 list.Append(base::BinaryValue::CreateWithCopiedBuffer("mojo", 4)); in TEST_F()
|
/external/libmojo/ipc/ |
D | ipc_message_utils.cc | 111 const base::BinaryValue* binary = in GetValueSize() 112 static_cast<const base::BinaryValue*>(value); in GetValueSize() 181 const base::BinaryValue* binary = in WriteValue() 182 static_cast<const base::BinaryValue*>(value); in WriteValue() 302 std::unique_ptr<base::BinaryValue> val = in ReadValue() 303 base::BinaryValue::CreateWithCopiedBuffer(data, length); in ReadValue()
|