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 01d34a76a406c4566e0fcf25b581acdeb4593596..3691b233919cc3bc50eabb118f180276c613631e 100644 |
--- a/webrtc/video/end_to_end_tests.cc |
+++ b/webrtc/video/end_to_end_tests.cc |
@@ -809,6 +809,8 @@ class FlexfecRenderObserver : public test::EndToEndTest, |
} |
void OnFrame(const VideoFrame& video_frame) override { |
+ EXPECT_EQ(kVideoRotation_90, video_frame.rotation()); |
+ |
rtc::CritScope lock(&crit_); |
// Rendering frame with timestamp of packet that was dropped -> FEC |
// protection worked. |
@@ -846,6 +848,11 @@ class FlexfecRenderObserver : public test::EndToEndTest, |
} |
} |
+ void OnFrameGeneratorCapturerCreated( |
+ test::FrameGeneratorCapturer* frame_generator_capturer) override { |
+ frame_generator_capturer->SetFakeRotation(kVideoRotation_90); |
+ } |
+ |
void ModifyFlexfecConfigs( |
std::vector<FlexfecReceiveStream::Config>* receive_configs) override { |
(*receive_configs)[0].local_ssrc = kFlexfecLocalSsrc; |
@@ -1109,6 +1116,7 @@ void EndToEndTest::DecodesRetransmittedFrame(bool enable_rtx, bool enable_red) { |
} |
void OnFrame(const VideoFrame& frame) override { |
+ EXPECT_EQ(kVideoRotation_90, frame.rotation()); |
{ |
rtc::CritScope lock(&crit_); |
if (frame.timestamp() == retransmitted_timestamp_) |
@@ -1161,6 +1169,11 @@ void EndToEndTest::DecodesRetransmittedFrame(bool enable_rtx, bool enable_red) { |
(*receive_configs)[0].decoders[0].payload_name = "VP8"; |
} |
+ void OnFrameGeneratorCapturerCreated( |
+ test::FrameGeneratorCapturer* frame_generator_capturer) override { |
+ frame_generator_capturer->SetFakeRotation(kVideoRotation_90); |
brandtr
2017/08/21 11:05:32
Added this to catch similar regressions affecting
nisse-webrtc
2017/08/21 11:54:24
Nice!
|
+ } |
+ |
void PerformTest() override { |
EXPECT_TRUE(Wait()) |
<< "Timed out while waiting for retransmission to render."; |