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

Side by Side Diff: webrtc/video/video_capture_input_unittest.cc

Issue 1477013005: Replace RefCountImpl with rtc::RefCountedObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add back explicit Release()s in test 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 | « webrtc/test/vcm_capturer.cc ('k') | webrtc/video/video_send_stream_tests.cc » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #include "webrtc/video/video_capture_input.h" 10 #include "webrtc/video/video_capture_input.h"
11 11
12 #include <memory> 12 #include <memory>
13 #include <vector> 13 #include <vector>
14 14
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webrtc/base/event.h" 16 #include "webrtc/base/event.h"
17 #include "webrtc/system_wrappers/include/ref_count.h" 17 #include "webrtc/base/refcount.h"
18 #include "webrtc/system_wrappers/include/scoped_vector.h" 18 #include "webrtc/system_wrappers/include/scoped_vector.h"
19 #include "webrtc/test/fake_texture_frame.h" 19 #include "webrtc/test/fake_texture_frame.h"
20 #include "webrtc/video/send_statistics_proxy.h" 20 #include "webrtc/video/send_statistics_proxy.h"
21 21
22 // If an output frame does not arrive in 500ms, the test will fail. 22 // If an output frame does not arrive in 500ms, the test will fail.
23 #define FRAME_TIMEOUT_MS 500 23 #define FRAME_TIMEOUT_MS 500
24 24
25 namespace webrtc { 25 namespace webrtc {
26 26
27 bool EqualFrames(const VideoFrame& frame1, const VideoFrame& frame2); 27 bool EqualFrames(const VideoFrame& frame1, const VideoFrame& frame2);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 const int kSizeY = width * height * 2; 266 const int kSizeY = width * height * 2;
267 uint8_t buffer[kSizeY]; 267 uint8_t buffer[kSizeY];
268 memset(buffer, data, kSizeY); 268 memset(buffer, data, kSizeY);
269 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2, 269 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2,
270 width / 2, kVideoRotation_0); 270 width / 2, kVideoRotation_0);
271 frame->set_render_time_ms(data); 271 frame->set_render_time_ms(data);
272 return frame; 272 return frame;
273 } 273 }
274 274
275 } // namespace webrtc 275 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/vcm_capturer.cc ('k') | webrtc/video/video_send_stream_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698