Index: webrtc/api/videotrack_unittest.cc |
diff --git a/webrtc/api/videotrack_unittest.cc b/webrtc/api/videotrack_unittest.cc |
index 0df8679ddcd64068c510294bec20055c61fe6566..d35bcdb2a03dd81e34824c67164726e23faf5d02 100644 |
--- a/webrtc/api/videotrack_unittest.cc |
+++ b/webrtc/api/videotrack_unittest.cc |
@@ -20,7 +20,6 @@ |
#include "webrtc/media/engine/webrtcvideoframe.h" |
using webrtc::FakeVideoTrackRenderer; |
-using webrtc::FakeVideoTrackRendererOld; |
using webrtc::MediaSourceInterface; |
using webrtc::MediaStreamTrackInterface; |
using webrtc::VideoTrackSource; |
@@ -74,30 +73,6 @@ TEST_F(VideoTrackTest, RenderVideo) { |
EXPECT_EQ(2, renderer_2->num_rendered_frames()); |
} |
-// Test adding renderers to a video track and render to them by |
-// providing frames to the source. Uses the old VideoTrack interface |
-// with AddRenderer and RemoveRenderer. |
-TEST_F(VideoTrackTest, RenderVideoOld) { |
- // FakeVideoTrackRenderer register itself to |video_track_| |
- rtc::scoped_ptr<FakeVideoTrackRendererOld> renderer_1( |
- new FakeVideoTrackRendererOld(video_track_.get())); |
- |
- capturer_.CaptureFrame(); |
- EXPECT_EQ(1, renderer_1->num_rendered_frames()); |
- |
- // FakeVideoTrackRenderer register itself to |video_track_| |
- rtc::scoped_ptr<FakeVideoTrackRenderer> renderer_2( |
- new FakeVideoTrackRenderer(video_track_.get())); |
- |
- capturer_.CaptureFrame(); |
- EXPECT_EQ(2, renderer_1->num_rendered_frames()); |
- EXPECT_EQ(1, renderer_2->num_rendered_frames()); |
- |
- renderer_1.reset(nullptr); |
- capturer_.CaptureFrame(); |
- EXPECT_EQ(2, renderer_2->num_rendered_frames()); |
-} |
- |
// Test that disabling the track results in blacked out frames. |
TEST_F(VideoTrackTest, DisableTrackBlackout) { |
rtc::scoped_ptr<FakeVideoTrackRenderer> renderer( |