OLD | NEW |
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 "webrtc/modules/audio_processing/agc/utility.h" |
20 #include "webrtc/test/gtest.h" | 21 #include "webrtc/test/gtest.h" |
21 #include "webrtc/test/testsupport/fileutils.h" | 22 #include "webrtc/test/testsupport/fileutils.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; |
31 }; | 31 }; |
32 | 32 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |