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

Side by Side Diff: remoting/test/fake_port_allocator.cc

Issue 502123003: Remove implicit conversions from scoped_refptr to T* in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/host/video_frame_recorder.cc ('k') | no next file » | 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 "remoting/test/fake_network_dispatcher.h" 7 #include "remoting/test/fake_network_dispatcher.h"
8 #include "remoting/test/fake_network_manager.h" 8 #include "remoting/test/fake_network_manager.h"
9 #include "remoting/test/fake_socket_factory.h" 9 #include "remoting/test/fake_socket_factory.h"
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 int port) { 84 int port) {
85 ReceiveSessionResponse(std::string()); 85 ReceiveSessionResponse(std::string());
86 } 86 }
87 87
88 } // namespace 88 } // namespace
89 89
90 // static 90 // static
91 scoped_ptr<FakePortAllocator> FakePortAllocator::Create( 91 scoped_ptr<FakePortAllocator> FakePortAllocator::Create(
92 scoped_refptr<FakeNetworkDispatcher> fake_network_dispatcher) { 92 scoped_refptr<FakeNetworkDispatcher> fake_network_dispatcher) {
93 scoped_ptr<FakePacketSocketFactory> socket_factory( 93 scoped_ptr<FakePacketSocketFactory> socket_factory(
94 new FakePacketSocketFactory(fake_network_dispatcher)); 94 new FakePacketSocketFactory(fake_network_dispatcher.get()));
95 scoped_ptr<rtc::NetworkManager> network_manager( 95 scoped_ptr<rtc::NetworkManager> network_manager(
96 new FakeNetworkManager(socket_factory->GetAddress())); 96 new FakeNetworkManager(socket_factory->GetAddress()));
97 97
98 return scoped_ptr<FakePortAllocator>( 98 return scoped_ptr<FakePortAllocator>(
99 new FakePortAllocator(network_manager.Pass(), socket_factory.Pass())); 99 new FakePortAllocator(network_manager.Pass(), socket_factory.Pass()));
100 } 100 }
101 101
102 FakePortAllocator::FakePortAllocator( 102 FakePortAllocator::FakePortAllocator(
103 scoped_ptr<rtc::NetworkManager> network_manager, 103 scoped_ptr<rtc::NetworkManager> network_manager,
104 scoped_ptr<FakePacketSocketFactory> socket_factory) 104 scoped_ptr<FakePacketSocketFactory> socket_factory)
(...skipping 10 matching lines...) Expand all
115 const std::string& content_name, 115 const std::string& content_name,
116 int component, 116 int component,
117 const std::string& ice_username_fragment, 117 const std::string& ice_username_fragment,
118 const std::string& ice_password) { 118 const std::string& ice_password) {
119 return new FakePortAllocatorSession( 119 return new FakePortAllocatorSession(
120 this, content_name, component, ice_username_fragment, ice_password, 120 this, content_name, component, ice_username_fragment, ice_password,
121 stun_hosts(), relay_hosts(), relay_token()); 121 stun_hosts(), relay_hosts(), relay_token());
122 } 122 }
123 123
124 } // namespace remoting 124 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/video_frame_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698