| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 generator.StartRecording(); | 509 generator.StartRecording(); |
| 510 generator.Process(100); | 510 generator.Process(100); |
| 511 | 511 |
| 512 EXPECT_EQ(AudioProcessing::kNoError, | 512 EXPECT_EQ(AudioProcessing::kNoError, |
| 513 aec->set_suppression_level(EchoCancellation::kHighSuppression)); | 513 aec->set_suppression_level(EchoCancellation::kHighSuppression)); |
| 514 generator.Process(100); | 514 generator.Process(100); |
| 515 generator.StopRecording(); | 515 generator.StopRecording(); |
| 516 VerifyDebugDump(generator.dump_file_name()); | 516 VerifyDebugDump(generator.dump_file_name()); |
| 517 } | 517 } |
| 518 | 518 |
| 519 #if defined(WEBRTC_ANDROID) | 519 // AGC is not supported on Android or iOS. |
| 520 // AGC may not be supported on Android. | 520 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
| 521 #define MAYBE_ToggleAgc DISABLED_ToggleAgc | 521 #define MAYBE_ToggleAgc DISABLED_ToggleAgc |
| 522 #else | 522 #else |
| 523 #define MAYBE_ToggleAgc ToggleAgc | 523 #define MAYBE_ToggleAgc ToggleAgc |
| 524 #endif | 524 #endif |
| 525 TEST_F(DebugDumpTest, MAYBE_ToggleAgc) { | 525 TEST_F(DebugDumpTest, MAYBE_ToggleAgc) { |
| 526 Config config; | 526 Config config; |
| 527 DebugDumpGenerator generator(config, AudioProcessing::Config()); | 527 DebugDumpGenerator generator(config, AudioProcessing::Config()); |
| 528 generator.StartRecording(); | 528 generator.StartRecording(); |
| 529 generator.Process(100); | 529 generator.Process(100); |
| 530 | 530 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 555 config.Set<ExperimentalNs>(new ExperimentalNs(true)); | 555 config.Set<ExperimentalNs>(new ExperimentalNs(true)); |
| 556 DebugDumpGenerator generator(config, AudioProcessing::Config()); | 556 DebugDumpGenerator generator(config, AudioProcessing::Config()); |
| 557 generator.StartRecording(); | 557 generator.StartRecording(); |
| 558 generator.Process(100); | 558 generator.Process(100); |
| 559 generator.StopRecording(); | 559 generator.StopRecording(); |
| 560 VerifyDebugDump(generator.dump_file_name()); | 560 VerifyDebugDump(generator.dump_file_name()); |
| 561 } | 561 } |
| 562 | 562 |
| 563 } // namespace test | 563 } // namespace test |
| 564 } // namespace webrtc | 564 } // namespace webrtc |
| OLD | NEW |