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

Side by Side Diff: webrtc/modules/audio_processing/agc/loudness_histogram_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 // Use CreateHistUnittestFile.m to generate the input file. 11 // Use CreateHistUnittestFile.m to generate the input file.
12 12
13 #include "webrtc/modules/audio_processing/agc/loudness_histogram.h" 13 #include "webrtc/modules/audio_processing/agc/loudness_histogram.h"
14 14
15 #include <stdio.h> 15 #include <stdio.h>
16 #include <algorithm> 16 #include <algorithm>
17 #include <cmath> 17 #include <cmath>
18 #include <memory> 18 #include <memory>
19 19
20 #include "gtest/gtest.h" 20 #include "webrtc/test/gtest.h"
21 #include "webrtc/test/testsupport/fileutils.h" 21 #include "webrtc/test/testsupport/fileutils.h"
22 #include "webrtc/modules/audio_processing/agc/utility.h" 22 #include "webrtc/modules/audio_processing/agc/utility.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 struct InputOutput { 26 struct InputOutput {
27 double rms; 27 double rms;
28 double activity_probability; 28 double activity_probability;
29 double audio_content; 29 double audio_content;
30 double loudness; 30 double loudness;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 .c_str()); 97 .c_str());
98 } 98 }
99 99
100 TEST_F(LoudnessHistogramTest, InactiveCircularBuffer) { 100 TEST_F(LoudnessHistogramTest, InactiveCircularBuffer) {
101 RunTest(false, test::ResourcePath( 101 RunTest(false, test::ResourcePath(
102 "audio_processing/agc/agc_no_circular_buffer", "dat") 102 "audio_processing/agc/agc_no_circular_buffer", "dat")
103 .c_str()); 103 .c_str());
104 } 104 }
105 105
106 } // namespace webrtc 106 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/agc_manager_direct_unittest.cc ('k') | webrtc/modules/audio_processing/agc/mock_agc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698