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

Side by Side Diff: remoting/test/fake_port_allocator.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 unified diff | Download patch
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/test/fake_port_allocator.h" 5 #include "remoting/test/fake_port_allocator.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "remoting/protocol/transport_context.h" 9 #include "remoting/protocol/transport_context.h"
10 #include "remoting/test/fake_network_dispatcher.h" 10 #include "remoting/test/fake_network_dispatcher.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 socket_factory_.reset( 74 socket_factory_.reset(
75 new FakePacketSocketFactory(fake_network_dispatcher.get())); 75 new FakePacketSocketFactory(fake_network_dispatcher.get()));
76 network_manager_.reset(new FakeNetworkManager(socket_factory_->GetAddress())); 76 network_manager_.reset(new FakeNetworkManager(socket_factory_->GetAddress()));
77 } 77 }
78 78
79 FakePortAllocatorFactory::~FakePortAllocatorFactory() {} 79 FakePortAllocatorFactory::~FakePortAllocatorFactory() {}
80 80
81 std::unique_ptr<cricket::PortAllocator> 81 std::unique_ptr<cricket::PortAllocator>
82 FakePortAllocatorFactory::CreatePortAllocator( 82 FakePortAllocatorFactory::CreatePortAllocator(
83 scoped_refptr<protocol::TransportContext> transport_context) { 83 scoped_refptr<protocol::TransportContext> transport_context) {
84 return base::WrapUnique(new FakePortAllocator( 84 return base::MakeUnique<FakePortAllocator>(
85 network_manager_.get(), socket_factory_.get(), transport_context)); 85 network_manager_.get(), socket_factory_.get(), transport_context);
86 } 86 }
87 87
88 } // namespace remoting 88 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/signaling/xmpp_signal_strategy_unittest.cc ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698