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

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> 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/host/token_validator_factory_impl.cc ('k') | remoting/host/touch_injector_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/token_validator_factory_impl_unittest.cc
diff --git a/remoting/host/token_validator_factory_impl_unittest.cc b/remoting/host/token_validator_factory_impl_unittest.cc
index 49a9f8773cc7b8557f1a04214b794e18b145fd2d..3623039b09aff5f04a4d1d33c55ac0d780c788d2 100644
--- a/remoting/host/token_validator_factory_impl_unittest.cc
+++ b/remoting/host/token_validator_factory_impl_unittest.cc
@@ -60,7 +60,7 @@ class SetResponseURLRequestContext: public net::TestURLRequestContext {
make_scoped_ptr(new net::URLRequestJobFactoryImpl());
factory->SetProtocolHandler(
"https", make_scoped_ptr(new FakeProtocolHandler(headers, response)));
- context_storage_.set_job_factory(factory.Pass());
+ context_storage_.set_job_factory(std::move(factory));
}
};
@@ -91,10 +91,9 @@ class TokenValidatorFactoryImplTest : public testing::Test {
protected:
void SetUp() override {
key_pair_ = RsaKeyPair::FromString(kTestRsaKeyPair);
- scoped_ptr<net::TestURLRequestContext> context(
- new SetResponseURLRequestContext());
request_context_getter_ = new net::TestURLRequestContextGetter(
- message_loop_.task_runner(), context.Pass());
+ message_loop_.task_runner(),
+ make_scoped_ptr(new SetResponseURLRequestContext()));
ThirdPartyAuthConfig config;
config.token_url = GURL(kTokenUrl);
config.token_validation_url = GURL(kTokenValidationUrl);
« no previous file with comments | « remoting/host/token_validator_factory_impl.cc ('k') | remoting/host/touch_injector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698