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

Unified Diff: remoting/test/fake_port_allocator.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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/test/fake_port_allocator.h ('k') | remoting/test/fake_socket_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/fake_port_allocator.cc
diff --git a/remoting/test/fake_port_allocator.cc b/remoting/test/fake_port_allocator.cc
index 49db5530e0e66108bdfc4f361b6fe14011e1486a..b0a26de5ff184216428ac4006ee69e9e06879ad7 100644
--- a/remoting/test/fake_port_allocator.cc
+++ b/remoting/test/fake_port_allocator.cc
@@ -5,6 +5,7 @@
#include "remoting/test/fake_port_allocator.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "remoting/protocol/transport_context.h"
#include "remoting/test/fake_network_dispatcher.h"
#include "remoting/test/fake_network_manager.h"
@@ -77,10 +78,10 @@ FakePortAllocatorFactory::FakePortAllocatorFactory(
FakePortAllocatorFactory::~FakePortAllocatorFactory() {}
-scoped_ptr<cricket::PortAllocator>
+std::unique_ptr<cricket::PortAllocator>
FakePortAllocatorFactory::CreatePortAllocator(
scoped_refptr<protocol::TransportContext> transport_context) {
- return make_scoped_ptr(new FakePortAllocator(
+ return base::WrapUnique(new FakePortAllocator(
network_manager_.get(), socket_factory_.get(), transport_context));
}
« no previous file with comments | « remoting/test/fake_port_allocator.h ('k') | remoting/test/fake_socket_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698