Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: webrtc/video/end_to_end_tests.cc

Issue 2304363002: Let ViEEncoder express resolution requests as Sinkwants (Closed)
Patch Set: Rebased. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/encoder_rtcp_feedback_unittest.cc ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8b923a7b97741f221685a111d3eb9ea27311b6af..7b796c00b440e4955425115f4857d18cf419b1f2 100644
--- a/webrtc/video/end_to_end_tests.cc
+++ b/webrtc/video/end_to_end_tests.cc
@@ -233,7 +233,8 @@ TEST_F(EndToEndTest, RendersSingleDelayedFrame) {
std::unique_ptr<test::FrameGenerator> frame_generator(
test::FrameGenerator::CreateChromaGenerator(kWidth, kHeight));
test::FrameForwarder frame_forwarder;
- video_send_stream_->SetSource(&frame_forwarder);
+ video_send_stream_->SetSource(
+ &frame_forwarder, VideoSendStream::DegradationPreference::kBalanced);
frame_forwarder.IncomingCapturedFrame(*frame_generator->NextFrame());
EXPECT_TRUE(pre_render_callback.Wait())
@@ -279,7 +280,8 @@ TEST_F(EndToEndTest, TransmitsFirstFrame) {
test::FrameGenerator::CreateChromaGenerator(kDefaultWidth,
kDefaultHeight));
test::FrameForwarder frame_forwarder;
- video_send_stream_->SetSource(&frame_forwarder);
+ video_send_stream_->SetSource(
+ &frame_forwarder, VideoSendStream::DegradationPreference::kBalanced);
frame_forwarder.IncomingCapturedFrame(*frame_generator->NextFrame());
EXPECT_TRUE(renderer.Wait())
@@ -1317,7 +1319,9 @@ class MultiStreamTest {
frame_generators[i] = test::FrameGeneratorCapturer::Create(
width, height, 30, Clock::GetRealTimeClock());
- send_streams[i]->SetSource(frame_generators[i]);
+ send_streams[i]->SetSource(
+ frame_generators[i],
+ VideoSendStream::DegradationPreference::kBalanced);
frame_generators[i]->Start();
}
@@ -1777,7 +1781,8 @@ TEST_F(EndToEndTest, ObserversEncodedFrames) {
test::FrameGenerator::CreateChromaGenerator(kDefaultWidth,
kDefaultHeight));
test::FrameForwarder forwarder;
- video_send_stream_->SetSource(&forwarder);
+ video_send_stream_->SetSource(
+ &forwarder, VideoSendStream::DegradationPreference::kBalanced);
forwarder.IncomingCapturedFrame(*frame_generator->NextFrame());
EXPECT_TRUE(post_encode_observer.Wait())
« no previous file with comments | « webrtc/video/encoder_rtcp_feedback_unittest.cc ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698