| Index: chrome/common/common_param_traits_unittest.cc
|
| diff --git a/chrome/common/common_param_traits_unittest.cc b/chrome/common/common_param_traits_unittest.cc
|
| index bc4741873a54366eaf196fd54df7d1f1f20ce0b6..57644b571a4b2cc4129e17c10ed2966d7e632dd0 100644
|
| --- a/chrome/common/common_param_traits_unittest.cc
|
| +++ b/chrome/common/common_param_traits_unittest.cc
|
| @@ -117,9 +117,9 @@ TEST(IPCMessageTest, Bitmap) {
|
|
|
| TEST(IPCMessageTest, ListValue) {
|
| ListValue input;
|
| - input.Set(0, Value::CreateDoubleValue(42.42));
|
| - input.Set(1, Value::CreateStringValue("forty"));
|
| - input.Set(2, Value::CreateNullValue());
|
| + input.Set(0, base::NumberValue::New(42.42));
|
| + input.Set(1, base::StringValue::New("forty"));
|
| + input.Set(2, base::NullValue());
|
|
|
| IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
|
| IPC::WriteParam(&msg, input);
|
| @@ -139,18 +139,18 @@ TEST(IPCMessageTest, ListValue) {
|
|
|
| TEST(IPCMessageTest, DictionaryValue) {
|
| DictionaryValue input;
|
| - input.Set("null", Value::CreateNullValue());
|
| - input.Set("bool", Value::CreateBooleanValue(true));
|
| - input.Set("int", Value::CreateIntegerValue(42));
|
| + input.Set("null", base::NullValue());
|
| + input.Set("bool", base::TrueValue());
|
| + input.Set("int", base::NumberValue::New(42));
|
|
|
| scoped_ptr<DictionaryValue> subdict(new DictionaryValue());
|
| - subdict->Set("str", Value::CreateStringValue("forty two"));
|
| - subdict->Set("bool", Value::CreateBooleanValue(false));
|
| + subdict->Set("str", base::StringValue::New("forty two"));
|
| + subdict->Set("bool", base::FalseValue());
|
|
|
| scoped_ptr<ListValue> sublist(new ListValue());
|
| - sublist->Set(0, Value::CreateDoubleValue(42.42));
|
| - sublist->Set(1, Value::CreateStringValue("forty"));
|
| - sublist->Set(2, Value::CreateStringValue("two"));
|
| + sublist->Set(0, base::NumberValue::New(42.42));
|
| + sublist->Set(1, base::StringValue::New("forty"));
|
| + sublist->Set(2, base::StringValue::New("two"));
|
| subdict->Set("list", sublist.release());
|
|
|
| input.Set("dict", subdict.release());
|
|
|