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 e597f6eb6c0a19b0423d29558aceac6d5a87822b..92c05a0952bdb25e5a2168117ef927d5c2a9732f 100644 |
--- a/content/renderer/media/mock_peer_connection_impl.h |
+++ b/content/renderer/media/mock_peer_connection_impl.h |
@@ -13,6 +13,7 @@ |
#include "base/macros.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "third_party/webrtc/api/peerconnectioninterface.h" |
+#include "third_party/webrtc/api/stats/rtcstatsreport.h" |
namespace content { |
@@ -41,9 +42,12 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface { |
bool GetStats(webrtc::StatsObserver* observer, |
webrtc::MediaStreamTrackInterface* track, |
StatsOutputLevel level) override; |
+ void GetStats(webrtc::RTCStatsCollectorCallback* callback) override; |
- // Set Call this function to make sure next call to GetStats fail. |
+ // Set Call this function to make sure next call to legacy GetStats fail. |
foolip
2016/09/20 14:21:48
Some weird typo here you might want to fix.
hbos_chromium
2016/09/20 20:18:39
Done.
|
void SetGetStatsResult(bool result) { getstats_result_ = result; } |
+ // Set the report that |GetStats(RTCStatsCollectorCallback*)| returns. |
+ void SetGetStatsReport(webrtc::RTCStatsReport* report); |
SignalingState signaling_state() override { |
NOTIMPLEMENTED(); |
@@ -132,6 +136,7 @@ class MockPeerConnectionImpl : public webrtc::PeerConnectionInterface { |
int sdp_mline_index_; |
std::string ice_sdp_; |
webrtc::PeerConnectionObserver* observer_; |
+ rtc::scoped_refptr<webrtc::RTCStatsReport> stats_report_; |
DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionImpl); |
}; |