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

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

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: manual changes Created 4 years, 3 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
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 "webrtc/base/gtest.h"
kjellander_webrtc 2016/09/23 12:32:37 sort
15 #include "webrtc/base/bind.h" 15 #include "webrtc/base/bind.h"
16 #include "webrtc/test/fake_texture_frame.h" 16 #include "webrtc/test/fake_texture_frame.h"
17 #include "webrtc/test/frame_utils.h" 17 #include "webrtc/test/frame_utils.h"
18 #include "webrtc/video_frame.h" 18 #include "webrtc/video_frame.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 namespace { 22 namespace {
23 23
24 int ExpectedSize(int plane_stride, int image_height, PlaneType type) { 24 int ExpectedSize(int plane_stride, int image_height, PlaneType type) {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 // Center crop to 640 x 360 (16/9 aspect), then scale down by 2. 365 // Center crop to 640 x 360 (16/9 aspect), then scale down by 2.
366 rtc::scoped_refptr<I420Buffer> scaled_buffer( 366 rtc::scoped_refptr<I420Buffer> scaled_buffer(
367 I420Buffer::Create(320, 180)); 367 I420Buffer::Create(320, 180));
368 368
369 scaled_buffer->CropAndScaleFrom(buf); 369 scaled_buffer->CropAndScaleFrom(buf);
370 CheckCrop(scaled_buffer, 0.0, 0.125, 1.0, 0.75); 370 CheckCrop(scaled_buffer, 0.0, 0.125, 1.0, 0.75);
371 } 371 }
372 372
373 } // namespace webrtc 373 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698