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 #include "webrtc/common_audio/vad/vad_unittest.h" | 11 #include "webrtc/common_audio/vad/vad_unittest.h" |
12 | 12 |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 | 14 |
15 #include "webrtc/test/gtest.h" | |
16 | |
17 #include "webrtc/base/arraysize.h" | 15 #include "webrtc/base/arraysize.h" |
18 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 17 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
20 #include "webrtc/common_audio/vad/include/webrtc_vad.h" | 18 #include "webrtc/common_audio/vad/include/webrtc_vad.h" |
| 19 #include "webrtc/test/gtest.h" |
21 #include "webrtc/typedefs.h" | 20 #include "webrtc/typedefs.h" |
22 | 21 |
23 VadTest::VadTest() {} | 22 VadTest::VadTest() {} |
24 | 23 |
25 void VadTest::SetUp() {} | 24 void VadTest::SetUp() {} |
26 | 25 |
27 void VadTest::TearDown() {} | 26 void VadTest::TearDown() {} |
28 | 27 |
29 // Returns true if the rate and frame length combination is valid. | 28 // Returns true if the rate and frame length combination is valid. |
30 bool VadTest::ValidRatesAndFrameLengths(int rate, size_t frame_length) { | 29 bool VadTest::ValidRatesAndFrameLengths(int rate, size_t frame_length) { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 EXPECT_EQ(-1, WebRtcVad_ValidRateAndFrameLength(kRates[i], | 146 EXPECT_EQ(-1, WebRtcVad_ValidRateAndFrameLength(kRates[i], |
148 kFrameLengths[j])); | 147 kFrameLengths[j])); |
149 } | 148 } |
150 } | 149 } |
151 } | 150 } |
152 } | 151 } |
153 | 152 |
154 // TODO(bjornv): Add a process test, run on file. | 153 // TODO(bjornv): Add a process test, run on file. |
155 | 154 |
156 } // namespace | 155 } // namespace |
OLD | NEW |