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

Side by Side Diff: webrtc/tools/frame_editing/frame_editing_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
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 <stdio.h> 11 #include <stdio.h>
12 #include <stdlib.h> 12 #include <stdlib.h>
13 13
14 #include <fstream> 14 #include <fstream>
15 #include <memory> 15 #include <memory>
16 16
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "webrtc/test/gtest.h"
18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 18 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
19 #include "webrtc/test/testsupport/fileutils.h" 19 #include "webrtc/test/testsupport/fileutils.h"
20 #include "webrtc/tools/frame_editing/frame_editing_lib.h" 20 #include "webrtc/tools/frame_editing/frame_editing_lib.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace test { 23 namespace test {
24 24
25 const int kWidth = 352; 25 const int kWidth = 352;
26 const int kHeight = 288; 26 const int kHeight = 288;
27 const size_t kFrameSize = CalcBufferSize(kI420, kWidth, kHeight); 27 const size_t kFrameSize = CalcBufferSize(kI420, kWidth, kHeight);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 EXPECT_EQ(kFrameSize, num_bytes_read_); 207 EXPECT_EQ(kFrameSize, num_bytes_read_);
208 EXPECT_EQ(0, memcmp(original_buffer_.get(), edited_buffer_.get(), 208 EXPECT_EQ(0, memcmp(original_buffer_.get(), edited_buffer_.get(),
209 kFrameSize)); 209 kFrameSize));
210 } 210 }
211 } 211 }
212 CompareToTheEnd(edited_fid_, original_fid_, &original_buffer_, 212 CompareToTheEnd(edited_fid_, original_fid_, &original_buffer_,
213 &edited_buffer_); 213 &edited_buffer_);
214 } 214 }
215 } // namespace test 215 } // namespace test
216 } // namespace webrtc 216 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/tools/frame_analyzer/video_quality_analysis_unittest.cc ('k') | webrtc/tools/simple_command_line_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698