Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Unified Diff: mojo/common/common_custom_types_unittest.cc

Issue 2799093006: Remove base::BinaryValue (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/video_frame_metadata.cc ('k') | mojo/common/values_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/common_custom_types_unittest.cc
diff --git a/mojo/common/common_custom_types_unittest.cc b/mojo/common/common_custom_types_unittest.cc
index 36fc0423ddfcc7016907ff4fe2c3e17ef0aa1866..b0943783879967e50a947624e50cb1e64aa79506 100644
--- a/mojo/common/common_custom_types_unittest.cc
+++ b/mojo/common/common_custom_types_unittest.cc
@@ -294,7 +294,7 @@ TEST_F(CommonCustomTypesTest, Value) {
ASSERT_TRUE(ptr->BounceValue(input->CreateDeepCopy(), &output));
EXPECT_TRUE(base::Value::Equals(input.get(), output.get()));
- input = base::BinaryValue::CreateWithCopiedBuffer("mojo", 4);
+ input = base::Value::CreateWithCopiedBuffer("mojo", 4);
ASSERT_TRUE(ptr->BounceValue(input->CreateDeepCopy(), &output));
EXPECT_TRUE(base::Value::Equals(input.get(), output.get()));
@@ -304,8 +304,7 @@ TEST_F(CommonCustomTypesTest, Value) {
dict->SetString("string", "some string");
dict->SetBoolean("nested.bool", true);
dict->SetInteger("nested.int", 9);
- dict->Set("some_binary",
- base::BinaryValue::CreateWithCopiedBuffer("mojo", 4));
+ dict->Set("some_binary", base::Value::CreateWithCopiedBuffer("mojo", 4));
dict->Set("null_value", base::MakeUnique<base::Value>());
dict->SetIntegerWithoutPathExpansion("non_nested.int", 10);
{
@@ -327,7 +326,7 @@ TEST_F(CommonCustomTypesTest, Value) {
list->AppendString("string");
list->AppendDouble(42.1);
list->AppendBoolean(true);
- list->Append(base::BinaryValue::CreateWithCopiedBuffer("mojo", 4));
+ list->Append(base::Value::CreateWithCopiedBuffer("mojo", 4));
list->Append(base::MakeUnique<base::Value>());
{
std::unique_ptr<base::DictionaryValue> list_dict(
« no previous file with comments | « media/base/video_frame_metadata.cc ('k') | mojo/common/values_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698