| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 | 12 |
| 13 #include "webrtc/media/base/videoframe_unittest.h" | 13 #include "webrtc/media/base/videoframe_unittest.h" |
| 14 #include "webrtc/media/webrtc/webrtcvideoframe.h" | 14 #include "webrtc/media/engine/webrtcvideoframe.h" |
| 15 #include "webrtc/media/webrtc/webrtcvideoframefactory.h" | 15 #include "webrtc/media/engine/webrtcvideoframefactory.h" |
| 16 | 16 |
| 17 class WebRtcVideoFrameFactoryTest | 17 class WebRtcVideoFrameFactoryTest |
| 18 : public VideoFrameTest<cricket::WebRtcVideoFrameFactory> { | 18 : public VideoFrameTest<cricket::WebRtcVideoFrameFactory> { |
| 19 public: | 19 public: |
| 20 WebRtcVideoFrameFactoryTest() {} | 20 WebRtcVideoFrameFactoryTest() {} |
| 21 | 21 |
| 22 void InitFrame(webrtc::VideoRotation frame_rotation) { | 22 void InitFrame(webrtc::VideoRotation frame_rotation) { |
| 23 const int frame_width = 1920; | 23 const int frame_width = 1920; |
| 24 const int frame_height = 1080; | 24 const int frame_height = 1080; |
| 25 | 25 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 cricket::WebRtcVideoFrameFactory factory_; | 98 cricket::WebRtcVideoFrameFactory factory_; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 TEST_F(WebRtcVideoFrameFactoryTest, NoApplyRotation) { | 101 TEST_F(WebRtcVideoFrameFactoryTest, NoApplyRotation) { |
| 102 TestCreateAliasedFrame(false); | 102 TestCreateAliasedFrame(false); |
| 103 } | 103 } |
| 104 | 104 |
| 105 TEST_F(WebRtcVideoFrameFactoryTest, ApplyRotation) { | 105 TEST_F(WebRtcVideoFrameFactoryTest, ApplyRotation) { |
| 106 TestCreateAliasedFrame(true); | 106 TestCreateAliasedFrame(true); |
| 107 } | 107 } |
| OLD | NEW |