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

Unified Diff: webrtc/pc/test/mock_peerconnection.h

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 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/pc/rtpsender.h ('k') | webrtc/pc/webrtcsession.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/test/mock_peerconnection.h
diff --git a/webrtc/pc/test/mock_peerconnection.h b/webrtc/pc/test/mock_peerconnection.h
index 97f31c1673870dc4079846de84a664c2657bee30..1256067237732e9c6c0577d7aafa410483ded510 100644
--- a/webrtc/pc/test/mock_peerconnection.h
+++ b/webrtc/pc/test/mock_peerconnection.h
@@ -13,6 +13,9 @@
#include <vector>
+#include "webrtc/base/thread.h"
+#include "webrtc/call/call.h"
+#include "webrtc/logging/rtc_event_log/rtc_event_log.h"
#include "webrtc/pc/peerconnection.h"
#include "webrtc/test/gmock.h"
@@ -23,8 +26,19 @@ class FakePeerConnectionFactory
: public rtc::RefCountedObject<webrtc::PeerConnectionFactory> {
public:
FakePeerConnectionFactory()
- : rtc::RefCountedObject<webrtc::PeerConnectionFactory>(nullptr, nullptr) {
- }
+ : rtc::RefCountedObject<webrtc::PeerConnectionFactory>(
+ rtc::Thread::Current(),
+ rtc::Thread::Current(),
+ rtc::Thread::Current(),
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
+ std::unique_ptr<cricket::MediaEngineInterface>(),
+ std::unique_ptr<webrtc::CallFactoryInterface>(),
+ std::unique_ptr<RtcEventLogFactoryInterface>()) {}
};
class MockPeerConnection
@@ -32,7 +46,9 @@ class MockPeerConnection
public:
MockPeerConnection()
: rtc::RefCountedObject<webrtc::PeerConnection>(
- new FakePeerConnectionFactory()) {}
+ new FakePeerConnectionFactory(),
+ std::unique_ptr<RtcEventLog>(),
+ std::unique_ptr<Call>()) {}
MOCK_METHOD0(local_streams,
rtc::scoped_refptr<StreamCollectionInterface>());
MOCK_METHOD0(remote_streams,
« no previous file with comments | « webrtc/pc/rtpsender.h ('k') | webrtc/pc/webrtcsession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698