| 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 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "webrtc/modules/include/module_common_types.h" | 34 #include "webrtc/modules/include/module_common_types.h" |
| 35 #include "webrtc/system_wrappers/include/event_wrapper.h" | 35 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 36 #include "webrtc/system_wrappers/include/trace.h" | 36 #include "webrtc/system_wrappers/include/trace.h" |
| 37 #include "webrtc/test/gtest.h" | 37 #include "webrtc/test/gtest.h" |
| 38 #include "webrtc/test/testsupport/fileutils.h" | 38 #include "webrtc/test/testsupport/fileutils.h" |
| 39 | 39 |
| 40 RTC_PUSH_IGNORING_WUNDEF() | 40 RTC_PUSH_IGNORING_WUNDEF() |
| 41 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 41 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
| 42 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" | 42 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" |
| 43 #else | 43 #else |
| 44 #include "webrtc/modules/audio_processing/unittest.pb.h" | 44 #include "webrtc/modules/audio_processing/test/unittest.pb.h" |
| 45 #endif | 45 #endif |
| 46 RTC_POP_IGNORING_WUNDEF() | 46 RTC_POP_IGNORING_WUNDEF() |
| 47 | 47 |
| 48 namespace webrtc { | 48 namespace webrtc { |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| 51 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where | 51 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where |
| 52 // applicable. | 52 // applicable. |
| 53 | 53 |
| 54 // TODO(bjornv): This is not feasible until the functionality has been | 54 // TODO(bjornv): This is not feasible until the functionality has been |
| (...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2877 // TODO(peah): Remove the testing for | 2877 // TODO(peah): Remove the testing for |
| 2878 // apm->capture_nonlocked_.level_controller_enabled once the value in config_ | 2878 // apm->capture_nonlocked_.level_controller_enabled once the value in config_ |
| 2879 // is instead used to activate the level controller. | 2879 // is instead used to activate the level controller. |
| 2880 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled); | 2880 EXPECT_FALSE(apm->capture_nonlocked_.level_controller_enabled); |
| 2881 EXPECT_NEAR(kTargetLcPeakLeveldBFS, | 2881 EXPECT_NEAR(kTargetLcPeakLeveldBFS, |
| 2882 apm->config_.level_controller.initial_peak_level_dbfs, | 2882 apm->config_.level_controller.initial_peak_level_dbfs, |
| 2883 std::numeric_limits<float>::epsilon()); | 2883 std::numeric_limits<float>::epsilon()); |
| 2884 } | 2884 } |
| 2885 | 2885 |
| 2886 } // namespace webrtc | 2886 } // namespace webrtc |
| OLD | NEW |