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

Unified Diff: remoting/protocol/third_party_authenticator_unittest.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (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
Index: remoting/protocol/third_party_authenticator_unittest.cc
diff --git a/remoting/protocol/third_party_authenticator_unittest.cc b/remoting/protocol/third_party_authenticator_unittest.cc
index 9f6dde1dee4a98ba3670b6ae3d604c88d916ddcd..ee2f01a428968803d688aaacc9defc4788da0719 100644
--- a/remoting/protocol/third_party_authenticator_unittest.cc
+++ b/remoting/protocol/third_party_authenticator_unittest.cc
@@ -100,11 +100,11 @@ class ThirdPartyAuthenticatorTest : public AuthenticatorTestBase {
scoped_ptr<TokenValidator> token_validator(new FakeTokenValidator());
token_validator_ = static_cast<FakeTokenValidator*>(token_validator.get());
host_.reset(new ThirdPartyHostAuthenticator(
- host_cert_, key_pair_, token_validator.Pass()));
+ host_cert_, key_pair_, std::move(token_validator)));
scoped_ptr<ThirdPartyClientAuthenticator::TokenFetcher>
token_fetcher(new FakeTokenFetcher());
token_fetcher_ = static_cast<FakeTokenFetcher*>(token_fetcher.get());
- client_.reset(new ThirdPartyClientAuthenticator(token_fetcher.Pass()));
+ client_.reset(new ThirdPartyClientAuthenticator(std::move(token_fetcher)));
}
FakeTokenFetcher* token_fetcher_;

Powered by Google App Engine
This is Rietveld 408576698