| Index: webrtc/common_video/i420_video_frame_unittest.cc
|
| diff --git a/webrtc/common_video/i420_video_frame_unittest.cc b/webrtc/common_video/i420_video_frame_unittest.cc
|
| index 62d14b9f4ac87851e7830a4078ced02febe20fd6..41d51d8305695f011c706f9297dabaa39466a53c 100644
|
| --- a/webrtc/common_video/i420_video_frame_unittest.cc
|
| +++ b/webrtc/common_video/i420_video_frame_unittest.cc
|
| @@ -11,11 +11,12 @@
|
| #include <math.h>
|
| #include <string.h>
|
|
|
| +#include "webrtc/api/video/video_frame.h"
|
| #include "webrtc/base/bind.h"
|
| +#include "webrtc/base/timeutils.h"
|
| #include "webrtc/test/fake_texture_frame.h"
|
| #include "webrtc/test/frame_utils.h"
|
| #include "webrtc/test/gtest.h"
|
| -#include "webrtc/video_frame.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -286,7 +287,7 @@ class TestI420BufferRotate
|
| TEST_P(TestI420BufferRotate, Rotates) {
|
| rtc::scoped_refptr<VideoFrameBuffer> buffer = CreateGradient(640, 480);
|
| rtc::scoped_refptr<VideoFrameBuffer> rotated_buffer =
|
| - I420Buffer::Rotate(buffer, GetParam());
|
| + I420Buffer::Rotate(*buffer, GetParam());
|
| CheckRotate(640, 480, GetParam(), *rotated_buffer);
|
| }
|
|
|
| @@ -296,4 +297,20 @@ INSTANTIATE_TEST_CASE_P(Rotate, TestI420BufferRotate,
|
| kVideoRotation_180,
|
| kVideoRotation_270));
|
|
|
| +class TestI420BufferRotateOld
|
| + : public ::testing::TestWithParam<webrtc::VideoRotation> {};
|
| +
|
| +TEST_P(TestI420BufferRotateOld, Rotates) {
|
| + rtc::scoped_refptr<VideoFrameBuffer> buffer = CreateGradient(640, 480);
|
| + rtc::scoped_refptr<VideoFrameBuffer> rotated_buffer =
|
| + I420Buffer::Rotate(buffer, GetParam());
|
| + CheckRotate(640, 480, GetParam(), *rotated_buffer);
|
| +}
|
| +
|
| +INSTANTIATE_TEST_CASE_P(Rotate, TestI420BufferRotateOld,
|
| + ::testing::Values(kVideoRotation_0,
|
| + kVideoRotation_90,
|
| + kVideoRotation_180,
|
| + kVideoRotation_270));
|
| +
|
| } // namespace webrtc
|
|
|