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

Unified Diff: remoting/host/token_validator_factory_impl_unittest.cc

Issue 2253233004: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/token_validator_factory_impl.cc ('k') | remoting/host/win/session_desktop_environment.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 ae08f59f150c7d8f963556aa9d289c7d84eb7acd..a0e4d1d788f8b4ef239bc866490160426ef30338 100644
--- a/remoting/host/token_validator_factory_impl_unittest.cc
+++ b/remoting/host/token_validator_factory_impl_unittest.cc
@@ -60,9 +60,9 @@ class SetResponseURLRequestContext: public net::TestURLRequestContext {
public:
void SetResponse(const std::string& headers, const std::string& response) {
std::unique_ptr<net::URLRequestJobFactoryImpl> factory =
- base::WrapUnique(new net::URLRequestJobFactoryImpl());
+ base::MakeUnique<net::URLRequestJobFactoryImpl>();
factory->SetProtocolHandler(
- "https", base::WrapUnique(new FakeProtocolHandler(headers, response)));
+ "https", base::MakeUnique<FakeProtocolHandler>(headers, response));
context_storage_.set_job_factory(std::move(factory));
}
};
@@ -96,7 +96,7 @@ class TokenValidatorFactoryImplTest : public testing::Test {
key_pair_ = RsaKeyPair::FromString(kTestRsaKeyPair);
request_context_getter_ = new net::TestURLRequestContextGetter(
message_loop_.task_runner(),
- base::WrapUnique(new SetResponseURLRequestContext()));
+ base::MakeUnique<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/win/session_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698