| Index: webrtc/media/base/videocapturer_unittest.cc
|
| diff --git a/webrtc/media/base/videocapturer_unittest.cc b/webrtc/media/base/videocapturer_unittest.cc
|
| index 40c770608f9dfb547fc84e25389cd9db6d8f24db..0d5a59e9b7d39c3cf1ae3b8dd8106f648cd3f805 100644
|
| --- a/webrtc/media/base/videocapturer_unittest.cc
|
| +++ b/webrtc/media/base/videocapturer_unittest.cc
|
| @@ -116,10 +116,6 @@
|
| 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,
|
| @@ -158,7 +154,7 @@
|
| EXPECT_EQ(webrtc::kVideoRotation_0, renderer_.rotation());
|
| }
|
|
|
| -TEST_F(VideoCapturerTest, TestRotationAppliedBySinkByDefault) {
|
| +TEST_F(VideoCapturerTest, TestRotationAppliedBySink) {
|
| int kWidth = 800;
|
| int kHeight = 400;
|
|
|
| @@ -168,6 +164,10 @@
|
| 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(
|
|
|