Index: webrtc/media/base/videocapturer_unittest.cc |
diff --git a/webrtc/media/base/videocapturer_unittest.cc b/webrtc/media/base/videocapturer_unittest.cc |
index 0d5a59e9b7d39c3cf1ae3b8dd8106f648cd3f805..40c770608f9dfb547fc84e25389cd9db6d8f24db 100644 |
--- a/webrtc/media/base/videocapturer_unittest.cc |
+++ b/webrtc/media/base/videocapturer_unittest.cc |
@@ -116,6 +116,10 @@ TEST_F(VideoCapturerTest, TestRotationAppliedBySource) { |
cricket::FOURCC_I420)); |
capturer_->ResetSupportedFormats(formats); |
+ rtc::VideoSinkWants wants; |
+ // |capturer_| should compensate rotation. |
+ wants.rotation_applied = true; |
+ capturer_->AddOrUpdateSink(&renderer_, wants); |
// capturer_ should compensate rotation as default. |
EXPECT_EQ(cricket::CS_RUNNING, |
@@ -154,7 +158,7 @@ TEST_F(VideoCapturerTest, TestRotationAppliedBySource) { |
EXPECT_EQ(webrtc::kVideoRotation_0, renderer_.rotation()); |
} |
-TEST_F(VideoCapturerTest, TestRotationAppliedBySink) { |
+TEST_F(VideoCapturerTest, TestRotationAppliedBySinkByDefault) { |
int kWidth = 800; |
int kHeight = 400; |
@@ -164,10 +168,6 @@ TEST_F(VideoCapturerTest, TestRotationAppliedBySink) { |
cricket::FOURCC_I420)); |
capturer_->ResetSupportedFormats(formats); |
- rtc::VideoSinkWants wants; |
- // capturer_ should not compensate rotation. |
- wants.rotation_applied = false; |
- capturer_->AddOrUpdateSink(&renderer_, wants); |
EXPECT_EQ(cricket::CS_RUNNING, |
capturer_->Start(cricket::VideoFormat( |