OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <math.h> | 11 #include <math.h> |
12 #include <string.h> | 12 #include <string.h> |
13 | 13 |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "webrtc/base/bind.h" | 15 #include "webrtc/base/bind.h" |
16 #include "webrtc/base/scoped_ptr.h" | |
17 #include "webrtc/test/fake_texture_frame.h" | 16 #include "webrtc/test/fake_texture_frame.h" |
18 #include "webrtc/test/frame_utils.h" | 17 #include "webrtc/test/frame_utils.h" |
19 #include "webrtc/video_frame.h" | 18 #include "webrtc/video_frame.h" |
20 | 19 |
21 namespace webrtc { | 20 namespace webrtc { |
22 | 21 |
23 int ExpectedSize(int plane_stride, int image_height, PlaneType type); | 22 int ExpectedSize(int plane_stride, int image_height, PlaneType type); |
24 | 23 |
25 TEST(TestVideoFrame, InitialValues) { | 24 TEST(TestVideoFrame, InitialValues) { |
26 VideoFrame frame; | 25 VideoFrame frame; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 EXPECT_EQ(10, frame.render_time_ms()); | 248 EXPECT_EQ(10, frame.render_time_ms()); |
250 EXPECT_EQ(handle, frame.native_handle()); | 249 EXPECT_EQ(handle, frame.native_handle()); |
251 | 250 |
252 frame.set_timestamp(200); | 251 frame.set_timestamp(200); |
253 EXPECT_EQ(200u, frame.timestamp()); | 252 EXPECT_EQ(200u, frame.timestamp()); |
254 frame.set_render_time_ms(20); | 253 frame.set_render_time_ms(20); |
255 EXPECT_EQ(20, frame.render_time_ms()); | 254 EXPECT_EQ(20, frame.render_time_ms()); |
256 } | 255 } |
257 | 256 |
258 } // namespace webrtc | 257 } // namespace webrtc |
OLD | NEW |