| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 int sample_rates_to_test[] = { | 297 int sample_rates_to_test[] = { |
| 298 AudioProcessing::kSampleRate8kHz, AudioProcessing::kSampleRate16kHz, | 298 AudioProcessing::kSampleRate8kHz, AudioProcessing::kSampleRate16kHz, |
| 299 AudioProcessing::kSampleRate32kHz, AudioProcessing::kSampleRate48kHz}; | 299 AudioProcessing::kSampleRate32kHz, AudioProcessing::kSampleRate48kHz}; |
| 300 for (auto sample_rate : sample_rates_to_test) { | 300 for (auto sample_rate : sample_rates_to_test) { |
| 301 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { | 301 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { |
| 302 RunStandaloneSubmodule(sample_rate, num_channels); | 302 RunStandaloneSubmodule(sample_rate, num_channels); |
| 303 } | 303 } |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 #if !defined(WEBRTC_ANDROID) |
| 307 TEST(LevelControllerPerformanceTest, ProcessingViaApm) { | 308 TEST(LevelControllerPerformanceTest, ProcessingViaApm) { |
| 309 #else |
| 310 TEST(LevelControllerPerformanceTest, DISABLED_ProcessingViaApm) { |
| 311 #endif |
| 308 int sample_rates_to_test[] = {AudioProcessing::kSampleRate8kHz, | 312 int sample_rates_to_test[] = {AudioProcessing::kSampleRate8kHz, |
| 309 AudioProcessing::kSampleRate16kHz, | 313 AudioProcessing::kSampleRate16kHz, |
| 310 AudioProcessing::kSampleRate32kHz, | 314 AudioProcessing::kSampleRate32kHz, |
| 311 AudioProcessing::kSampleRate48kHz, 44100}; | 315 AudioProcessing::kSampleRate48kHz, 44100}; |
| 312 for (auto capture_input_sample_rate_hz : sample_rates_to_test) { | 316 for (auto capture_input_sample_rate_hz : sample_rates_to_test) { |
| 313 for (auto capture_output_sample_rate_hz : sample_rates_to_test) { | 317 for (auto capture_output_sample_rate_hz : sample_rates_to_test) { |
| 314 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { | 318 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { |
| 315 RunTogetherWithApm("SimpleLevelControlViaApm", 48000, 48000, | 319 RunTogetherWithApm("SimpleLevelControlViaApm", 48000, 48000, |
| 316 capture_input_sample_rate_hz, | 320 capture_input_sample_rate_hz, |
| 317 capture_output_sample_rate_hz, num_channels, false, | 321 capture_output_sample_rate_hz, num_channels, false, |
| 318 false); | 322 false); |
| 319 } | 323 } |
| 320 } | 324 } |
| 321 } | 325 } |
| 322 } | 326 } |
| 323 | 327 |
| 328 #if !defined(WEBRTC_ANDROID) |
| 324 TEST(LevelControllerPerformanceTest, InteractionWithDefaultApm) { | 329 TEST(LevelControllerPerformanceTest, InteractionWithDefaultApm) { |
| 330 #else |
| 331 TEST(LevelControllerPerformanceTest, DISABLED_InteractionWithDefaultApm) { |
| 332 #endif |
| 325 int sample_rates_to_test[] = {AudioProcessing::kSampleRate8kHz, | 333 int sample_rates_to_test[] = {AudioProcessing::kSampleRate8kHz, |
| 326 AudioProcessing::kSampleRate16kHz, | 334 AudioProcessing::kSampleRate16kHz, |
| 327 AudioProcessing::kSampleRate32kHz, | 335 AudioProcessing::kSampleRate32kHz, |
| 328 AudioProcessing::kSampleRate48kHz, 44100}; | 336 AudioProcessing::kSampleRate48kHz, 44100}; |
| 329 for (auto capture_input_sample_rate_hz : sample_rates_to_test) { | 337 for (auto capture_input_sample_rate_hz : sample_rates_to_test) { |
| 330 for (auto capture_output_sample_rate_hz : sample_rates_to_test) { | 338 for (auto capture_output_sample_rate_hz : sample_rates_to_test) { |
| 331 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { | 339 for (size_t num_channels = 1; num_channels <= 2; ++num_channels) { |
| 332 RunTogetherWithApm("LevelControlAndDefaultDesktopApm", 48000, 48000, | 340 RunTogetherWithApm("LevelControlAndDefaultDesktopApm", 48000, 48000, |
| 333 capture_input_sample_rate_hz, | 341 capture_input_sample_rate_hz, |
| 334 capture_output_sample_rate_hz, num_channels, false, | 342 capture_output_sample_rate_hz, num_channels, false, |
| 335 true); | 343 true); |
| 336 RunTogetherWithApm("LevelControlAndDefaultMobileApm", 48000, 48000, | 344 RunTogetherWithApm("LevelControlAndDefaultMobileApm", 48000, 48000, |
| 337 capture_input_sample_rate_hz, | 345 capture_input_sample_rate_hz, |
| 338 capture_output_sample_rate_hz, num_channels, true, | 346 capture_output_sample_rate_hz, num_channels, true, |
| 339 true); | 347 true); |
| 340 } | 348 } |
| 341 } | 349 } |
| 342 } | 350 } |
| 343 } | 351 } |
| 344 | 352 |
| 345 } // namespace webrtc | 353 } // namespace webrtc |
| OLD | NEW |