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

Unified Diff: net/proxy/proxy_service_mojo_unittest.cc

Issue 2259823002: 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, 3 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 | « net/proxy/proxy_service_mojo.cc ('k') | net/proxy/proxy_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_service_mojo_unittest.cc
diff --git a/net/proxy/proxy_service_mojo_unittest.cc b/net/proxy/proxy_service_mojo_unittest.cc
index 58431d42156ee80afe56a15304f92d378975ff37..f3a839642756c07d47861af1d35d2aa9fae8c0d0 100644
--- a/net/proxy/proxy_service_mojo_unittest.cc
+++ b/net/proxy/proxy_service_mojo_unittest.cc
@@ -132,9 +132,9 @@ class ProxyServiceMojoTest : public testing::Test,
fetcher_ = new MockProxyScriptFetcher;
proxy_service_ = CreateProxyServiceUsingMojoFactory(
- this, base::WrapUnique(new ProxyConfigServiceFixed(
- ProxyConfig::CreateFromCustomPacURL(GURL(kPacUrl)))),
- fetcher_, base::WrapUnique(new DoNothingDhcpProxyScriptFetcher()),
+ this, base::MakeUnique<ProxyConfigServiceFixed>(
+ ProxyConfig::CreateFromCustomPacURL(GURL(kPacUrl))),
+ fetcher_, base::MakeUnique<DoNothingDhcpProxyScriptFetcher>(),
&mock_host_resolver_, &net_log_, &network_delegate_);
}
@@ -144,8 +144,8 @@ class ProxyServiceMojoTest : public testing::Test,
interfaces::ProxyResolverFactoryRequestClientPtr client) override {
InProcessMojoProxyResolverFactory::GetInstance()->CreateResolver(
pac_script, std::move(req), std::move(client));
- return base::WrapUnique(
- new base::ScopedClosureRunner(on_delete_closure_.closure()));
+ return base::MakeUnique<base::ScopedClosureRunner>(
+ on_delete_closure_.closure());
}
TestNetworkDelegate network_delegate_;
« no previous file with comments | « net/proxy/proxy_service_mojo.cc ('k') | net/proxy/proxy_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698