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

Side by Side Diff: webrtc/test/frame_generator.cc

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: Created 4 years 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/call_test.cc ('k') | webrtc/video/end_to_end_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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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/test/frame_generator.h" 10 #include "webrtc/test/frame_generator.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 start_time_(clock->TimeInMilliseconds()), 154 start_time_(clock->TimeInMilliseconds()),
155 scroll_time_(scroll_time_ms), 155 scroll_time_(scroll_time_ms),
156 pause_time_(pause_time_ms), 156 pause_time_(pause_time_ms),
157 num_frames_(files.size()), 157 num_frames_(files.size()),
158 target_width_(static_cast<int>(target_width)), 158 target_width_(static_cast<int>(target_width)),
159 target_height_(static_cast<int>(target_height)), 159 target_height_(static_cast<int>(target_height)),
160 current_frame_num_(num_frames_ - 1), 160 current_frame_num_(num_frames_ - 1),
161 current_source_frame_(nullptr), 161 current_source_frame_(nullptr),
162 file_generator_(files, source_width, source_height, 1) { 162 file_generator_(files, source_width, source_height, 1) {
163 RTC_DCHECK(clock_ != nullptr); 163 RTC_DCHECK(clock_ != nullptr);
164 RTC_DCHECK_GT(num_frames_, 0u); 164 RTC_DCHECK_GT(num_frames_, 0);
165 RTC_DCHECK_GE(source_height, target_height); 165 RTC_DCHECK_GE(source_height, target_height);
166 RTC_DCHECK_GE(source_width, target_width); 166 RTC_DCHECK_GE(source_width, target_width);
167 RTC_DCHECK_GE(scroll_time_ms, 0); 167 RTC_DCHECK_GE(scroll_time_ms, 0);
168 RTC_DCHECK_GE(pause_time_ms, 0); 168 RTC_DCHECK_GE(pause_time_ms, 0);
169 RTC_DCHECK_GT(scroll_time_ms + pause_time_ms, 0); 169 RTC_DCHECK_GT(scroll_time_ms + pause_time_ms, 0);
170 } 170 }
171 171
172 virtual ~ScrollingImageFrameGenerator() {} 172 virtual ~ScrollingImageFrameGenerator() {}
173 173
174 VideoFrame* NextFrame() override { 174 VideoFrame* NextFrame() override {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 files.push_back(file); 315 files.push_back(file);
316 } 316 }
317 317
318 return new ScrollingImageFrameGenerator( 318 return new ScrollingImageFrameGenerator(
319 clock, files, source_width, source_height, target_width, target_height, 319 clock, files, source_width, source_height, target_width, target_height,
320 scroll_time_ms, pause_time_ms); 320 scroll_time_ms, pause_time_ms);
321 } 321 }
322 322
323 } // namespace test 323 } // namespace test
324 } // namespace webrtc 324 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/call_test.cc ('k') | webrtc/video/end_to_end_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698