Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: webrtc/common_video/i420_video_frame_unittest.cc

Issue 1749103003: Replace scoped_ptr with unique_ptr in webrtc/common_video/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up6
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/common_video/include/incoming_video_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/common_video/include/incoming_video_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698