Index: webrtc/video/video_send_stream_tests.cc |
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc |
index 654784cc5f421841257294267003afcf8ea7f417..f1654fc90d81f2b38beb6faf4ce40354cdb77f3f 100644 |
--- a/webrtc/video/video_send_stream_tests.cc |
+++ b/webrtc/video/video_send_stream_tests.cc |
@@ -33,6 +33,7 @@ |
#include "webrtc/test/call_test.h" |
#include "webrtc/test/configurable_frame_size_encoder.h" |
#include "webrtc/test/fake_texture_frame.h" |
+#include "webrtc/test/frame_generator.h" |
#include "webrtc/test/frame_utils.h" |
#include "webrtc/test/null_transport.h" |
#include "webrtc/test/testsupport/perf_test.h" |
@@ -1465,8 +1466,10 @@ TEST_F(VideoSendStreamTest, CapturesTextureAndVideoFrames) { |
handle3, width, height, 5, 5, kVideoRotation_0)); |
video_send_stream_->Start(); |
+ test::FrameForwarder forwarder; |
+ video_send_stream_->SetSource(&forwarder); |
for (size_t i = 0; i < input_frames.size(); i++) { |
- video_send_stream_->Input()->IncomingCapturedFrame(input_frames[i]); |
+ forwarder.IncomingCapturedFrame(input_frames[i]); |
// Do not send the next frame too fast, so the frame dropper won't drop it. |
if (i < input_frames.size() - 1) |
SleepMs(1000 / video_encoder_config_.streams[0].max_framerate); |
@@ -1475,6 +1478,7 @@ TEST_F(VideoSendStreamTest, CapturesTextureAndVideoFrames) { |
observer.WaitOutputFrame(); |
} |
video_send_stream_->Stop(); |
+ video_send_stream_->SetSource(nullptr); |
// Test if the input and output frames are the same. render_time_ms and |
// timestamp are not compared because capturer sets those values. |