Index: webrtc/video/end_to_end_tests.cc |
diff --git a/webrtc/video/end_to_end_tests.cc b/webrtc/video/end_to_end_tests.cc |
index cc50eefe2804259427353fccc430810d1177d23e..c8c122a97b4bb5100f5346c56f6bd450c70c5998 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -2027,8 +2027,7 @@ |
void EndToEndTest::VerifyHistogramStats(bool use_rtx, |
bool use_red, |
bool screenshare) { |
- class StatsObserver : public test::EndToEndTest, |
- public rtc::VideoSinkInterface<VideoFrame> { |
+ class StatsObserver : public test::EndToEndTest { |
public: |
StatsObserver(bool use_rtx, bool use_red, bool screenshare) |
: EndToEndTest(kLongTimeoutMs), |
@@ -2044,8 +2043,6 @@ |
start_runtime_ms_(-1) {} |
private: |
- void OnFrame(const VideoFrame& video_frame) override {} |
- |
Action OnSendRtp(const uint8_t* packet, size_t length) override { |
if (MinMetricRunTimePassed()) |
observation_complete_.Set(); |
@@ -2070,7 +2067,6 @@ |
// NACK |
send_config->rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
(*receive_configs)[0].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
- (*receive_configs)[0].renderer = this; |
// FEC |
if (use_red_) { |
send_config->rtp.fec.ulpfec_payload_type = kUlpfecPayloadType; |
@@ -2494,15 +2490,6 @@ |
TEST_F(EndToEndTest, GetStats) { |
static const int kStartBitrateBps = 3000000; |
static const int kExpectedRenderDelayMs = 20; |
- |
- class ReceiveStreamRenderer : public rtc::VideoSinkInterface<VideoFrame> { |
- public: |
- ReceiveStreamRenderer() {} |
- |
- private: |
- void OnFrame(const VideoFrame& video_frame) override {} |
- }; |
- |
class StatsObserver : public test::EndToEndTest, |
public rtc::VideoSinkInterface<VideoFrame> { |
public: |
@@ -2703,7 +2690,6 @@ |
expected_receive_ssrcs_.push_back( |
(*receive_configs)[i].rtp.remote_ssrc); |
(*receive_configs)[i].render_delay_ms = kExpectedRenderDelayMs; |
- (*receive_configs)[i].renderer = &receive_stream_renderer_; |
} |
// Use a delayed encoder to make sure we see CpuOveruseMetrics stats that |
// are non-zero. |
@@ -2773,7 +2759,6 @@ |
std::string expected_cname_; |
rtc::Event check_stats_event_; |
- ReceiveStreamRenderer receive_stream_renderer_; |
} test; |
RunBaseTest(&test); |