diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 04:30:42 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-16 04:30:42 +0000 |
commit | 9be7a32aa4714bcd216fba8256f1e914443ad663 (patch) | |
tree | 271dc3c64602f7b1ca4255dfa2caac5f9c40e355 /sync/js/sync_js_controller_unittest.cc | |
parent | b0101d770f09d722dab872dd5dce34a6e631c5ed (diff) | |
download | chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.zip chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.tar.gz chromium_src-9be7a32aa4714bcd216fba8256f1e914443ad663.tar.bz2 |
Cleanup: Remove deprecated base::Value methods from sync. Use base::Value too.
Review URL: https://chromiumcodereview.appspot.com/12262057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/js/sync_js_controller_unittest.cc')
-rw-r--r-- | sync/js/sync_js_controller_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sync/js/sync_js_controller_unittest.cc b/sync/js/sync_js_controller_unittest.cc index ad7973e..9a201f2 100644 --- a/sync/js/sync_js_controller_unittest.cc +++ b/sync/js/sync_js_controller_unittest.cc @@ -36,9 +36,9 @@ TEST_F(SyncJsControllerTest, Messages) { StrictMock<MockJsBackend> mock_backend; SyncJsController sync_js_controller; - ListValue arg_list1, arg_list2; - arg_list1.Append(Value::CreateBooleanValue(false)); - arg_list2.Append(Value::CreateIntegerValue(5)); + base::ListValue arg_list1, arg_list2; + arg_list1.Append(new base::FundamentalValue(false)); + arg_list2.Append(new base::FundamentalValue(5)); JsArgList args1(&arg_list1), args2(&arg_list2); // TODO(akalin): Write matchers for WeakHandle and use them here @@ -62,9 +62,9 @@ TEST_F(SyncJsControllerTest, QueuedMessages) { StrictMock<MockJsBackend> mock_backend; SyncJsController sync_js_controller; - ListValue arg_list1, arg_list2; - arg_list1.Append(Value::CreateBooleanValue(false)); - arg_list2.Append(Value::CreateIntegerValue(5)); + base::ListValue arg_list1, arg_list2; + arg_list1.Append(new base::FundamentalValue(false)); + arg_list2.Append(new base::FundamentalValue(5)); JsArgList args1(&arg_list1), args2(&arg_list2); // Should queue messages. @@ -98,7 +98,7 @@ TEST_F(SyncJsControllerTest, Events) { InSequence dummy; SyncJsController sync_js_controller; - DictionaryValue details_dict1, details_dict2; + base::DictionaryValue details_dict1, details_dict2; details_dict1.SetString("foo", "bar"); details_dict2.SetInteger("baz", 5); JsEventDetails details1(&details_dict1), details2(&details_dict2); |