Index: content/renderer/media/mock_peer_connection_impl.h |
diff --git a/content/renderer/media/mock_peer_connection_impl.h b/content/renderer/media/mock_peer_connection_impl.h |
index 83765f21b4edf162ff863aea431e9f82c95e0cb5..9fc6aa0cd0c869585037c6baec288f9f95074278 100644 |
--- a/content/renderer/media/mock_peer_connection_impl.h |
+++ b/content/renderer/media/mock_peer_connection_impl.h |
@@ -92,7 +92,8 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface { |
void SetRemoteDescriptionWorker( |
webrtc::SetSessionDescriptionObserver* observer, |
webrtc::SessionDescriptionInterface* desc); |
- bool SetConfiguration(const RTCConfiguration& configuration) override; |
+ bool SetConfiguration(const RTCConfiguration& configuration, |
+ webrtc::RTCError* error) override; |
bool AddIceCandidate(const webrtc::IceCandidateInterface* candidate) override; |
void RegisterUMAObserver(webrtc::UMAObserver* observer) override; |
@@ -111,6 +112,9 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface { |
webrtc::PeerConnectionObserver* observer() { |
return observer_; |
} |
+ void set_setconfiguration_error_type(webrtc::RTCErrorType error_type) { |
+ setconfiguration_error_type_ = error_type; |
+ } |
static const char kDummyOffer[]; |
static const char kDummyAnswer[]; |
@@ -136,6 +140,8 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface { |
int sdp_mline_index_; |
std::string ice_sdp_; |
webrtc::PeerConnectionObserver* observer_; |
+ webrtc::RTCErrorType setconfiguration_error_type_ = |
+ webrtc::RTCErrorType::NONE; |
rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_; |
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |