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

Side by Side Diff: webrtc/modules/audio_processing/audio_processing_unittest.cc

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 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 #include <math.h> 10 #include <math.h>
11 #include <stdio.h> 11 #include <stdio.h>
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <limits> 14 #include <limits>
15 #include <memory> 15 #include <memory>
16 #include <queue> 16 #include <queue>
17 17
18 #include "webrtc/base/arraysize.h"
19 #include "webrtc/base/checks.h"
20 #include "webrtc/base/gtest_prod_util.h"
21 #include "webrtc/base/ignore_wundef.h"
22 #include "webrtc/base/protobuf_utils.h"
23 #include "webrtc/base/safe_minmax.h"
24 #include "webrtc/base/task_queue.h"
25 #include "webrtc/base/thread.h"
26 #include "webrtc/common_audio/include/audio_util.h" 18 #include "webrtc/common_audio/include/audio_util.h"
27 #include "webrtc/common_audio/resampler/include/push_resampler.h" 19 #include "webrtc/common_audio/resampler/include/push_resampler.h"
28 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" 20 #include "webrtc/common_audio/resampler/push_sinc_resampler.h"
29 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 21 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
30 #include "webrtc/modules/audio_processing/aec_dump/aec_dump_factory.h" 22 #include "webrtc/modules/audio_processing/aec_dump/aec_dump_factory.h"
31 #include "webrtc/modules/audio_processing/audio_processing_impl.h" 23 #include "webrtc/modules/audio_processing/audio_processing_impl.h"
32 #include "webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h " 24 #include "webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h "
33 #include "webrtc/modules/audio_processing/common.h" 25 #include "webrtc/modules/audio_processing/common.h"
34 #include "webrtc/modules/audio_processing/include/audio_processing.h" 26 #include "webrtc/modules/audio_processing/include/audio_processing.h"
35 #include "webrtc/modules/audio_processing/level_controller/level_controller_cons tants.h" 27 #include "webrtc/modules/audio_processing/level_controller/level_controller_cons tants.h"
36 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" 28 #include "webrtc/modules/audio_processing/test/protobuf_utils.h"
37 #include "webrtc/modules/audio_processing/test/test_utils.h" 29 #include "webrtc/modules/audio_processing/test/test_utils.h"
38 #include "webrtc/modules/include/module_common_types.h" 30 #include "webrtc/modules/include/module_common_types.h"
31 #include "webrtc/rtc_base/arraysize.h"
32 #include "webrtc/rtc_base/checks.h"
33 #include "webrtc/rtc_base/gtest_prod_util.h"
34 #include "webrtc/rtc_base/ignore_wundef.h"
35 #include "webrtc/rtc_base/protobuf_utils.h"
36 #include "webrtc/rtc_base/safe_minmax.h"
37 #include "webrtc/rtc_base/task_queue.h"
38 #include "webrtc/rtc_base/thread.h"
39 #include "webrtc/system_wrappers/include/event_wrapper.h" 39 #include "webrtc/system_wrappers/include/event_wrapper.h"
40 #include "webrtc/system_wrappers/include/trace.h" 40 #include "webrtc/system_wrappers/include/trace.h"
41 #include "webrtc/test/gtest.h" 41 #include "webrtc/test/gtest.h"
42 #include "webrtc/test/testsupport/fileutils.h" 42 #include "webrtc/test/testsupport/fileutils.h"
43 43
44 RTC_PUSH_IGNORING_WUNDEF() 44 RTC_PUSH_IGNORING_WUNDEF()
45 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD 45 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
46 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" 46 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h"
47 #else 47 #else
48 #include "webrtc/modules/audio_processing/test/unittest.pb.h" 48 #include "webrtc/modules/audio_processing/test/unittest.pb.h"
(...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 // TODO(peah): Remove the testing for 2885 // TODO(peah): Remove the testing for
2886 // apm->capture_nonlocked_.level_controller_enabled once the value in config_ 2886 // apm->capture_nonlocked_.level_controller_enabled once the value in config_
2887 // is instead used to activate the level controller. 2887 // is instead used to activate the level controller.
2888 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled); 2888 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled);
2889 EXPECT_NEAR(kTargetLcPeakLeveldBFS, 2889 EXPECT_NEAR(kTargetLcPeakLeveldBFS,
2890 apm->config_.level_controller.initial_peak_level_dbfs, 2890 apm->config_.level_controller.initial_peak_level_dbfs,
2891 std::numeric_limits<float>::epsilon()); 2891 std::numeric_limits<float>::epsilon());
2892 } 2892 }
2893 2893
2894 } // namespace webrtc 2894 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698