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

Unified Diff: remoting/test/fake_port_allocator.h

Issue 1571943002: Simplify PortAllocatorBase and make PortAllocator creation synchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/webrtc_transport.cc ('k') | remoting/test/fake_port_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/test/fake_port_allocator.h
diff --git a/remoting/test/fake_port_allocator.h b/remoting/test/fake_port_allocator.h
index 636e7a33a8d606f5a4ec49a31ec8620a562d1b5d..ed2e09541562c98106fca503e37ca931728bce31 100644
--- a/remoting/test/fake_port_allocator.h
+++ b/remoting/test/fake_port_allocator.h
@@ -10,22 +10,18 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "remoting/protocol/port_allocator_base.h"
#include "remoting/protocol/port_allocator_factory.h"
-
-namespace rtc {
-class NetworkManager;
-} // namespace rtc
+#include "third_party/webrtc/p2p/client/basicportallocator.h"
namespace remoting {
class FakeNetworkDispatcher;
class FakePacketSocketFactory;
-class FakePortAllocator : public protocol::PortAllocatorBase {
+class FakePortAllocator : public cricket::BasicPortAllocator {
public:
FakePortAllocator(rtc::NetworkManager* network_manager,
- FakePacketSocketFactory* socket_factory);
+ rtc::PacketSocketFactory* socket_factory);
~FakePortAllocator() override;
// cricket::BasicPortAllocator overrides.
@@ -48,7 +44,8 @@ class FakePortAllocatorFactory : public protocol::PortAllocatorFactory {
FakePacketSocketFactory* socket_factory() { return socket_factory_.get(); }
// PortAllocatorFactory interface.
- scoped_ptr<protocol::PortAllocatorBase> CreatePortAllocator() override;
+ scoped_ptr<cricket::PortAllocator> CreatePortAllocator(
+ scoped_refptr<protocol::TransportContext> transport_context) override;
private:
scoped_ptr<rtc::NetworkManager> network_manager_;
« no previous file with comments | « remoting/protocol/webrtc_transport.cc ('k') | remoting/test/fake_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698