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

Unified Diff: ipc/ipc_message_unittest.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/web_state/ui/web_view_js_utils.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 bde96a13e72ba3c6fb2f305ac9216f28d55e7417..fd08452a14fa0151d56aa4db5eea9d25c934f38c 100644
--- a/ipc/ipc_message_unittest.cc
+++ b/ipc/ipc_message_unittest.cc
@@ -66,7 +66,7 @@ TEST(IPCMessageTest, BasicMessageTest) {
TEST(IPCMessageTest, ListValue) {
base::ListValue input;
input.Set(0, new base::Value(42.42));
- input.Set(1, new base::StringValue("forty"));
+ input.Set(1, new base::Value("forty"));
input.Set(2, base::Value::CreateNullValue());
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
@@ -93,13 +93,13 @@ TEST(IPCMessageTest, DictionaryValue) {
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("str", new base::Value("forty two"));
subdict->Set("bool", new base::Value(false));
std::unique_ptr<base::ListValue> sublist(new base::ListValue());
sublist->Set(0, new base::Value(42.42));
- sublist->Set(1, new base::StringValue("forty"));
- sublist->Set(2, new base::StringValue("two"));
+ sublist->Set(1, new base::Value("forty"));
+ sublist->Set(2, new base::Value("two"));
subdict->Set("list", sublist.release());
input.Set("dict", subdict.release());
« no previous file with comments | « ios/web/web_state/ui/web_view_js_utils.mm ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698