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

Side by Side Diff: webrtc/modules/audio_coding/neteq/expand_unittest.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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 // Unit tests for Expand class. 11 // Unit tests for Expand class.
12 12
13 #include "webrtc/modules/audio_coding/neteq/expand.h" 13 #include "webrtc/modules/audio_coding/neteq/expand.h"
14 14
15 #include "webrtc/base/safe_conversions.h"
15 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 16 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
16 #include "webrtc/modules/audio_coding/neteq/background_noise.h" 17 #include "webrtc/modules/audio_coding/neteq/background_noise.h"
17 #include "webrtc/modules/audio_coding/neteq/random_vector.h" 18 #include "webrtc/modules/audio_coding/neteq/random_vector.h"
18 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h" 19 #include "webrtc/modules/audio_coding/neteq/statistics_calculator.h"
19 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h" 20 #include "webrtc/modules/audio_coding/neteq/sync_buffer.h"
20 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h" 21 #include "webrtc/modules/audio_coding/neteq/tools/resample_input_audio_file.h"
21 #include "webrtc/rtc_base/safe_conversions.h"
22 #include "webrtc/test/gtest.h" 22 #include "webrtc/test/gtest.h"
23 #include "webrtc/test/testsupport/fileutils.h" 23 #include "webrtc/test/testsupport/fileutils.h"
24 24
25 namespace webrtc { 25 namespace webrtc {
26 26
27 TEST(Expand, CreateAndDestroy) { 27 TEST(Expand, CreateAndDestroy) {
28 int fs = 8000; 28 int fs = 8000;
29 size_t channels = 1; 29 size_t channels = 1;
30 BackgroundNoise bgn(channels); 30 BackgroundNoise bgn(channels);
31 SyncBuffer sync_buffer(1, 1000); 31 SyncBuffer sync_buffer(1, 1000);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 expand_.Reset(); // Must reset in order to start a new expand period. 198 expand_.Reset(); // Must reset in order to start a new expand period.
199 ExpandUntilMuted(num_channels_, &expand_); 199 ExpandUntilMuted(num_channels_, &expand_);
200 expand_.SetParametersForNormalAfterExpand(); 200 expand_.SetParametersForNormalAfterExpand();
201 EXPECT_FALSE(expand_.Muted()); // Should be back to unmuted. 201 EXPECT_FALSE(expand_.Muted()); // Should be back to unmuted.
202 } 202 }
203 203
204 // TODO(hlundin): Write more tests. 204 // TODO(hlundin): Write more tests.
205 205
206 } // namespace webrtc 206 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/expand.cc ('k') | webrtc/modules/audio_coding/neteq/include/neteq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698