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

Unified Diff: remoting/test/mock_access_token_fetcher.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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 | « remoting/test/app_remoting_test_driver_environment_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/mock_access_token_fetcher.cc
diff --git a/remoting/test/mock_access_token_fetcher.cc b/remoting/test/mock_access_token_fetcher.cc
index d5d520199a49bc66048be33d24c2889d5c529aa9..398f09f00137031094c320afdfc9f4bd8826bd09 100644
--- a/remoting/test/mock_access_token_fetcher.cc
+++ b/remoting/test/mock_access_token_fetcher.cc
@@ -4,21 +4,20 @@
#include "remoting/test/mock_access_token_fetcher.h"
+#include <utility>
+
namespace remoting {
namespace test {
using ::testing::_;
using ::testing::Invoke;
-MockAccessTokenFetcher::MockAccessTokenFetcher() {
-}
-
-MockAccessTokenFetcher::~MockAccessTokenFetcher() {
-}
+MockAccessTokenFetcher::MockAccessTokenFetcher() {}
+MockAccessTokenFetcher::~MockAccessTokenFetcher() {}
void MockAccessTokenFetcher::SetAccessTokenFetcher(
scoped_ptr<AccessTokenFetcher> fetcher) {
- internal_access_token_fetcher_ = fetcher.Pass();
+ internal_access_token_fetcher_ = std::move(fetcher);
ON_CALL(*this, GetAccessTokenFromAuthCode(_, _))
.WillByDefault(Invoke(internal_access_token_fetcher_.get(),
« no previous file with comments | « remoting/test/app_remoting_test_driver_environment_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698