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

Unified Diff: remoting/host/setup/me2me_native_messaging_host_unittest.cc

Issue 1945443002: Convert callers of base::DeepCopy() to base::CreateDeepCopy() in //remoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 3 more Created 4 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 | « remoting/host/setup/me2me_native_messaging_host.cc ('k') | remoting/signaling/chromoting_event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/me2me_native_messaging_host_unittest.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_unittest.cc b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
index 09020da1bc064104a1bdf96634578fe185f8c0e2..f0317a16afc3e4030f8f720ac7e4d8a0aebf5f46 100644
--- a/remoting/host/setup/me2me_native_messaging_host_unittest.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
@@ -498,14 +498,14 @@ TEST_F(Me2MeNativeMessagingHostTest, All) {
// Following messages require a "config" dictionary.
base::DictionaryValue config;
config.SetBoolean("update", true);
- message.Set("config", config.DeepCopy());
+ message.Set("config", config.CreateDeepCopy());
message.SetInteger("id", next_id++);
message.SetString("type", "updateDaemonConfig");
WriteMessageToInputPipe(message);
config.Clear();
config.SetBoolean("start", true);
- message.Set("config", config.DeepCopy());
+ message.Set("config", config.CreateDeepCopy());
message.SetBoolean("consent", true);
message.SetInteger("id", next_id++);
message.SetString("type", "startDaemon");
@@ -625,7 +625,7 @@ TEST_F(Me2MeNativeMessagingHostTest, StartDaemonInvalidConfig) {
TEST_F(Me2MeNativeMessagingHostTest, StartDaemonNoConsent) {
base::DictionaryValue message;
message.SetString("type", "startDaemon");
- message.Set("config", base::DictionaryValue().DeepCopy());
+ message.Set("config", base::DictionaryValue().CreateDeepCopy());
TestBadRequest(message);
}
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host.cc ('k') | remoting/signaling/chromoting_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698