| 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 #ifndef REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ | 5 #ifndef REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ |
| 6 #define REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ | 6 #define REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "third_party/libjingle/source/talk/p2p/client/httpportallocator.h" | 12 #include "third_party/webrtc/p2p/client/httpportallocator.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 class FakeNetworkDispatcher; | 16 class FakeNetworkDispatcher; |
| 17 class FakePacketSocketFactory; | 17 class FakePacketSocketFactory; |
| 18 | 18 |
| 19 class FakePortAllocator : public cricket::HttpPortAllocatorBase { | 19 class FakePortAllocator : public cricket::HttpPortAllocatorBase { |
| 20 public: | 20 public: |
| 21 static scoped_ptr<FakePortAllocator> Create( | 21 static scoped_ptr<FakePortAllocator> Create( |
| 22 scoped_refptr<FakeNetworkDispatcher> fake_network_dispatcher); | 22 scoped_refptr<FakeNetworkDispatcher> fake_network_dispatcher); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 scoped_ptr<rtc::NetworkManager> network_manager_; | 39 scoped_ptr<rtc::NetworkManager> network_manager_; |
| 40 scoped_ptr<FakePacketSocketFactory> socket_factory_; | 40 scoped_ptr<FakePacketSocketFactory> socket_factory_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(FakePortAllocator); | 42 DISALLOW_COPY_AND_ASSIGN(FakePortAllocator); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace remoting | 45 } // namespace remoting |
| 46 | 46 |
| 47 #endif // REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ | 47 #endif // REMOTING_TEST_FAKE_PORT_ALLOCATOR_H_ |
| OLD | NEW |