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

Unified Diff: webrtc/p2p/base/fakepackettransport.h

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Add memcheck suppression for end-to-end tests. Created 3 years, 10 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 | « webrtc/ortc/testrtpparameters.cc ('k') | webrtc/p2p/base/packettransportinternal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/fakepackettransport.h
diff --git a/webrtc/p2p/base/fakepackettransport.h b/webrtc/p2p/base/fakepackettransport.h
index 03966f9ca06c967029f57aaa4374a090eb97d028..7e2f08437ec9782164e70d1007e9fcc15d749117 100644
--- a/webrtc/p2p/base/fakepackettransport.h
+++ b/webrtc/p2p/base/fakepackettransport.h
@@ -13,6 +13,7 @@
#include <string>
+#include "webrtc/api/ortc/packettransportinterface.h"
#include "webrtc/base/asyncinvoker.h"
#include "webrtc/base/copyonwritebuffer.h"
#include "webrtc/p2p/base/packettransportinternal.h"
@@ -20,7 +21,8 @@
namespace rtc {
// Used to simulate a packet-based transport.
-class FakePacketTransport : public PacketTransportInternal {
+class FakePacketTransport : public PacketTransportInternal,
+ public webrtc::PacketTransportInterface {
public:
explicit FakePacketTransport(const std::string& debug_name)
: debug_name_(debug_name) {}
@@ -85,6 +87,9 @@ class FakePacketTransport : public PacketTransportInternal {
bool GetOption(Socket::Option opt, int* value) override { return true; }
int GetError() override { return 0; }
+ protected:
+ PacketTransportInternal* GetInternal() override { return this; }
+
private:
void set_writable(bool writable) {
if (writable_ == writable) {
« no previous file with comments | « webrtc/ortc/testrtpparameters.cc ('k') | webrtc/p2p/base/packettransportinternal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698