| OLD | NEW |
| 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 "remoting/test/fake_network_dispatcher.h" | 8 #include "remoting/test/fake_network_dispatcher.h" |
| 8 #include "remoting/test/fake_network_manager.h" | 9 #include "remoting/test/fake_network_manager.h" |
| 9 #include "remoting/test/fake_socket_factory.h" | 10 #include "remoting/test/fake_socket_factory.h" |
| 10 #include "third_party/webrtc/p2p/client/basicportallocator.h" | 11 #include "third_party/webrtc/p2p/client/basicportallocator.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 class FakePortAllocatorSession | 17 class FakePortAllocatorSession |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 108 |
| 108 FakePortAllocatorFactory::~FakePortAllocatorFactory() {} | 109 FakePortAllocatorFactory::~FakePortAllocatorFactory() {} |
| 109 | 110 |
| 110 scoped_ptr<cricket::HttpPortAllocatorBase> | 111 scoped_ptr<cricket::HttpPortAllocatorBase> |
| 111 FakePortAllocatorFactory::CreatePortAllocator() { | 112 FakePortAllocatorFactory::CreatePortAllocator() { |
| 112 return make_scoped_ptr( | 113 return make_scoped_ptr( |
| 113 new FakePortAllocator(network_manager_.get(), socket_factory_.get())); | 114 new FakePortAllocator(network_manager_.get(), socket_factory_.get())); |
| 114 } | 115 } |
| 115 | 116 |
| 116 } // namespace remoting | 117 } // namespace remoting |
| OLD | NEW |