| Index: webrtc/modules/video_capture/test/video_capture_unittest.cc
|
| diff --git a/webrtc/modules/video_capture/test/video_capture_unittest.cc b/webrtc/modules/video_capture/test/video_capture_unittest.cc
|
| index 04f0a5ce099141a432d165afe025351426d755c8..600b618f5cffe0f2f8c556325b906b69f8416acc 100644
|
| --- a/webrtc/modules/video_capture/test/video_capture_unittest.cc
|
| +++ b/webrtc/modules/video_capture/test/video_capture_unittest.cc
|
| @@ -112,9 +112,14 @@
|
| EXPECT_TRUE(height == capability_.height || height == capability_.width);
|
| EXPECT_TRUE(width == capability_.width || width == capability_.height);
|
| #else
|
| - EXPECT_EQ(height, capability_.height);
|
| - EXPECT_EQ(width, capability_.width);
|
| - EXPECT_EQ(rotate_frame_, videoFrame.rotation());
|
| + if (rotate_frame_ == webrtc::kVideoRotation_90 ||
|
| + rotate_frame_ == webrtc::kVideoRotation_270) {
|
| + EXPECT_EQ(width, capability_.height);
|
| + EXPECT_EQ(height, capability_.width);
|
| + } else {
|
| + EXPECT_EQ(height, capability_.height);
|
| + EXPECT_EQ(width, capability_.width);
|
| + }
|
| #endif
|
| // RenderTimstamp should be the time now.
|
| EXPECT_TRUE(
|
|
|