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

Unified Diff: remoting/protocol/ice_transport_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
Index: remoting/protocol/ice_transport_unittest.cc
diff --git a/remoting/protocol/ice_transport_unittest.cc b/remoting/protocol/ice_transport_unittest.cc
index a3ee442a39e48b4a8320cbe5c2a0428474a9ad9d..74912ecdc84f19fe972691d753039d5562a6fbe1 100644
--- a/remoting/protocol/ice_transport_unittest.cc
+++ b/remoting/protocol/ice_transport_unittest.cc
@@ -118,9 +118,9 @@ class IceTransportTest : public testing::Test {
jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
host_transport_.reset(new IceTransport(
- new TransportContext(
- nullptr, base::WrapUnique(new ChromiumPortAllocatorFactory()),
- nullptr, network_settings_, TransportRole::SERVER),
+ new TransportContext(nullptr,
+ base::MakeUnique<ChromiumPortAllocatorFactory>(),
+ nullptr, network_settings_, TransportRole::SERVER),
&host_event_handler_));
if (!host_authenticator_) {
host_authenticator_.reset(new FakeAuthenticator(
@@ -128,9 +128,9 @@ class IceTransportTest : public testing::Test {
}
client_transport_.reset(new IceTransport(
- new TransportContext(
- nullptr, base::WrapUnique(new ChromiumPortAllocatorFactory()),
- nullptr, network_settings_, TransportRole::CLIENT),
+ new TransportContext(nullptr,
+ base::MakeUnique<ChromiumPortAllocatorFactory>(),
+ nullptr, network_settings_, TransportRole::CLIENT),
&client_event_handler_));
if (!client_authenticator_) {
client_authenticator_.reset(new FakeAuthenticator(
« no previous file with comments | « remoting/protocol/http_ice_config_request_unittest.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698