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

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

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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/fake_network_pipe_unittest.cc ('k') | webrtc/test/gmock.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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 <stdio.h> 11 #include <stdio.h>
12 12
13 #include <memory> 13 #include <memory>
14 #include <string> 14 #include <string>
15 15
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "webrtc/test/gtest.h"
17 #include "webrtc/test/frame_generator.h" 17 #include "webrtc/test/frame_generator.h"
18 #include "webrtc/test/testsupport/fileutils.h" 18 #include "webrtc/test/testsupport/fileutils.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 namespace test { 21 namespace test {
22 22
23 static const int kFrameWidth = 4; 23 static const int kFrameWidth = 4;
24 static const int kFrameHeight = 4; 24 static const int kFrameHeight = 4;
25 25
26 class FrameGeneratorTest : public ::testing::Test { 26 class FrameGeneratorTest : public ::testing::Test {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0); 138 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0);
139 for (int i = 0; i < kRepeatCount; ++i) 139 for (int i = 0; i < kRepeatCount; ++i)
140 CheckFrameAndMutate(generator->NextFrame(), 127, 127, 127); 140 CheckFrameAndMutate(generator->NextFrame(), 127, 127, 127);
141 for (int i = 0; i < kRepeatCount; ++i) 141 for (int i = 0; i < kRepeatCount; ++i)
142 CheckFrameAndMutate(generator->NextFrame(), 255, 255, 255); 142 CheckFrameAndMutate(generator->NextFrame(), 255, 255, 255);
143 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0); 143 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0);
144 } 144 }
145 145
146 } // namespace test 146 } // namespace test
147 } // namespace webrtc 147 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/fake_network_pipe_unittest.cc ('k') | webrtc/test/gmock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698