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

Unified Diff: google_apis/gcm/base/mcs_message_unittest.cc

Issue 1547233002: Convert Pass()→std::move() in //google_apis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « google_apis/gcm/base/mcs_message.cc ('k') | google_apis/gcm/base/mcs_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_message_unittest.cc
diff --git a/google_apis/gcm/base/mcs_message_unittest.cc b/google_apis/gcm/base/mcs_message_unittest.cc
index c27a7c5801b596fc9b0fd611a1305001f2c1590d..acbf334207ed6972d0e22c826d668501eab94e1d 100644
--- a/google_apis/gcm/base/mcs_message_unittest.cc
+++ b/google_apis/gcm/base/mcs_message_unittest.cc
@@ -5,6 +5,7 @@
#include "google_apis/gcm/base/mcs_message.h"
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/test/test_simple_task_runner.h"
@@ -82,7 +83,7 @@ TEST_F(MCSMessageTest, InitPassOwnership) {
BuildLoginRequest(kAndroidId, kSecret, ""));
scoped_ptr<google::protobuf::MessageLite> login_copy(
new mcs_proto::LoginRequest(*login_request));
- MCSMessage message(kLoginRequestTag, login_copy.Pass());
+ MCSMessage message(kLoginRequestTag, std::move(login_copy));
EXPECT_FALSE(login_copy.get());
ASSERT_TRUE(message.IsValid());
EXPECT_EQ(kLoginRequestTag, message.tag());
« no previous file with comments | « google_apis/gcm/base/mcs_message.cc ('k') | google_apis/gcm/base/mcs_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698