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

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

Issue 1278073004: Roll WebRTC 9687:9692, Libjingle 9690:9692 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove roll part; keep only remoting part Created 5 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/protocol/libjingle_transport_factory.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 FakePortAllocator::FakePortAllocator( 97 FakePortAllocator::FakePortAllocator(
98 scoped_ptr<rtc::NetworkManager> network_manager, 98 scoped_ptr<rtc::NetworkManager> network_manager,
99 scoped_ptr<FakePacketSocketFactory> socket_factory) 99 scoped_ptr<FakePacketSocketFactory> socket_factory)
100 : HttpPortAllocatorBase(network_manager.get(), 100 : HttpPortAllocatorBase(network_manager.get(),
101 socket_factory.get(), 101 socket_factory.get(),
102 std::string()), 102 std::string()),
103 network_manager_(network_manager.Pass()), 103 network_manager_(network_manager.Pass()),
104 socket_factory_(socket_factory.Pass()) { 104 socket_factory_(socket_factory.Pass()) {
105 set_flags(cricket::PORTALLOCATOR_DISABLE_TCP | 105 set_flags(cricket::PORTALLOCATOR_DISABLE_TCP |
106 cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG |
107 cricket::PORTALLOCATOR_ENABLE_IPV6 | 106 cricket::PORTALLOCATOR_ENABLE_IPV6 |
108 cricket::PORTALLOCATOR_DISABLE_STUN | 107 cricket::PORTALLOCATOR_DISABLE_STUN |
109 cricket::PORTALLOCATOR_DISABLE_RELAY); 108 cricket::PORTALLOCATOR_DISABLE_RELAY);
110 } 109 }
111 110
112 FakePortAllocator::~FakePortAllocator() { 111 FakePortAllocator::~FakePortAllocator() {
113 } 112 }
114 113
115 cricket::PortAllocatorSession* FakePortAllocator::CreateSessionInternal( 114 cricket::PortAllocatorSession* FakePortAllocator::CreateSessionInternal(
116 const std::string& content_name, 115 const std::string& content_name,
117 int component, 116 int component,
118 const std::string& ice_username_fragment, 117 const std::string& ice_username_fragment,
119 const std::string& ice_password) { 118 const std::string& ice_password) {
120 return new FakePortAllocatorSession( 119 return new FakePortAllocatorSession(
121 this, content_name, component, ice_username_fragment, ice_password, 120 this, content_name, component, ice_username_fragment, ice_password,
122 stun_hosts(), relay_hosts(), relay_token()); 121 stun_hosts(), relay_hosts(), relay_token());
123 } 122 }
124 123
125 } // namespace remoting 124 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/libjingle_transport_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698