| 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 |
| 11 #include "webrtc/modules/audio_processing/aec3/block_processor.h" | 11 #include "webrtc/modules/audio_processing/aec3/block_processor.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <sstream> | 14 #include <sstream> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/checks.h" | |
| 19 #include "webrtc/base/random.h" | |
| 20 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
| 21 #include "webrtc/modules/audio_processing/aec3/mock/mock_echo_remover.h" | 19 #include "webrtc/modules/audio_processing/aec3/mock/mock_echo_remover.h" |
| 22 #include "webrtc/modules/audio_processing/aec3/mock/mock_render_delay_buffer.h" | 20 #include "webrtc/modules/audio_processing/aec3/mock/mock_render_delay_buffer.h" |
| 23 #include "webrtc/modules/audio_processing/aec3/mock/mock_render_delay_controller
.h" | 21 #include "webrtc/modules/audio_processing/aec3/mock/mock_render_delay_controller
.h" |
| 24 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" | 22 #include "webrtc/modules/audio_processing/test/echo_canceller_test_tools.h" |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/rtc_base/random.h" |
| 25 #include "webrtc/test/gmock.h" | 25 #include "webrtc/test/gmock.h" |
| 26 #include "webrtc/test/gtest.h" | 26 #include "webrtc/test/gtest.h" |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 using testing::AtLeast; | 31 using testing::AtLeast; |
| 32 using testing::Return; | 32 using testing::Return; |
| 33 using testing::StrictMock; | 33 using testing::StrictMock; |
| 34 using testing::_; | 34 using testing::_; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // tests on test bots has been fixed. | 252 // tests on test bots has been fixed. |
| 253 TEST(BlockProcessor, DISABLED_WrongSampleRate) { | 253 TEST(BlockProcessor, DISABLED_WrongSampleRate) { |
| 254 EXPECT_DEATH(std::unique_ptr<BlockProcessor>(BlockProcessor::Create( | 254 EXPECT_DEATH(std::unique_ptr<BlockProcessor>(BlockProcessor::Create( |
| 255 AudioProcessing::Config::EchoCanceller3(), 8001)), | 255 AudioProcessing::Config::EchoCanceller3(), 8001)), |
| 256 ""); | 256 ""); |
| 257 } | 257 } |
| 258 | 258 |
| 259 #endif | 259 #endif |
| 260 | 260 |
| 261 } // namespace webrtc | 261 } // namespace webrtc |
| OLD | NEW |