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 // Unit tests for Normal class. | 11 // Unit tests for Normal class. |
12 | 12 |
13 #include "webrtc/modules/audio_coding/neteq/normal.h" | 13 #include "webrtc/modules/audio_coding/neteq/normal.h" |
14 | 14 |
15 #include <memory> | 15 #include <memory> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/test/gtest.h" | |
19 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 18 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
20 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" | 19 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" |
21 #include "webrtc/modules/audio_coding/neteq/background_noise.h" | 20 #include "webrtc/modules/audio_coding/neteq/background_noise.h" |
22 #include "webrtc/modules/audio_coding/neteq/expand.h" | 21 #include "webrtc/modules/audio_coding/neteq/expand.h" |
23 #include "webrtc/modules/audio_coding/neteq/mock/mock_decoder_database.h" | 22 #include "webrtc/modules/audio_coding/neteq/mock/mock_decoder_database.h" |
24 #include "webrtc/modules/audio_coding/neteq/mock/mock_expand.h" | 23 #include "webrtc/modules/audio_coding/neteq/mock/mock_expand.h" |
25 #include "webrtc/modules/audio_coding/neteq/random_vector.h" | 24 #include "webrtc/modules/audio_coding/neteq/random_vector.h" |
26 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h" | 25 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h" |
27 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" | 26 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" |
| 27 #include "webrtc/test/gtest.h" |
28 | 28 |
29 using ::testing::_; | 29 using ::testing::_; |
30 using ::testing::Invoke; | 30 using ::testing::Invoke; |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 int ExpandProcess120ms(AudioMultiVector* output) { | 36 int ExpandProcess120ms(AudioMultiVector* output) { |
37 AudioMultiVector dummy_audio(1, 11520u); | 37 AudioMultiVector dummy_audio(1, 11520u); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 EXPECT_EQ(kPacketsizeBytes, output.Size()); | 168 EXPECT_EQ(kPacketsizeBytes, output.Size()); |
169 | 169 |
170 EXPECT_CALL(db, Die()); // Called when |db| goes out of scope. | 170 EXPECT_CALL(db, Die()); // Called when |db| goes out of scope. |
171 EXPECT_CALL(expand, Die()); // Called when |expand| goes out of scope. | 171 EXPECT_CALL(expand, Die()); // Called when |expand| goes out of scope. |
172 } | 172 } |
173 | 173 |
174 // TODO(hlundin): Write more tests. | 174 // TODO(hlundin): Write more tests. |
175 | 175 |
176 } // namespace webrtc | 176 } // namespace webrtc |
OLD | NEW |