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

Unified Diff: ipc/ipc_message_unittest.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « ios/web/webui/mojo_facade.mm ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_unittest.cc
diff --git a/ipc/ipc_message_unittest.cc b/ipc/ipc_message_unittest.cc
index 8d32b45dca58c7278b84bbc637c0d86300f86373..bde96a13e72ba3c6fb2f305ac9216f28d55e7417 100644
--- a/ipc/ipc_message_unittest.cc
+++ b/ipc/ipc_message_unittest.cc
@@ -65,7 +65,7 @@ TEST(IPCMessageTest, BasicMessageTest) {
TEST(IPCMessageTest, ListValue) {
base::ListValue input;
- input.Set(0, new base::FundamentalValue(42.42));
+ input.Set(0, new base::Value(42.42));
input.Set(1, new base::StringValue("forty"));
input.Set(2, base::Value::CreateNullValue());
@@ -88,16 +88,16 @@ TEST(IPCMessageTest, ListValue) {
TEST(IPCMessageTest, DictionaryValue) {
base::DictionaryValue input;
input.Set("null", base::Value::CreateNullValue());
- input.Set("bool", new base::FundamentalValue(true));
- input.Set("int", new base::FundamentalValue(42));
- input.SetWithoutPathExpansion("int.with.dot", new base::FundamentalValue(43));
+ input.Set("bool", new base::Value(true));
+ input.Set("int", new base::Value(42));
+ input.SetWithoutPathExpansion("int.with.dot", new base::Value(43));
std::unique_ptr<base::DictionaryValue> subdict(new base::DictionaryValue());
subdict->Set("str", new base::StringValue("forty two"));
- subdict->Set("bool", new base::FundamentalValue(false));
+ subdict->Set("bool", new base::Value(false));
std::unique_ptr<base::ListValue> sublist(new base::ListValue());
- sublist->Set(0, new base::FundamentalValue(42.42));
+ sublist->Set(0, new base::Value(42.42));
sublist->Set(1, new base::StringValue("forty"));
sublist->Set(2, new base::StringValue("two"));
subdict->Set("list", sublist.release());
« no previous file with comments | « ios/web/webui/mojo_facade.mm ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698