OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 <utility> | 11 #include <utility> |
12 | 12 |
| 13 #include "webrtc/base/ptr_util.h" |
13 #include "webrtc/modules/audio_processing/aec_dump/mock_aec_dump.h" | 14 #include "webrtc/modules/audio_processing/aec_dump/mock_aec_dump.h" |
14 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 15 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
15 #include "webrtc/rtc_base/ptr_util.h" | |
16 | 16 |
17 using testing::_; | 17 using testing::_; |
18 using testing::AtLeast; | 18 using testing::AtLeast; |
19 using testing::Exactly; | 19 using testing::Exactly; |
20 using testing::Matcher; | 20 using testing::Matcher; |
21 using testing::StrictMock; | 21 using testing::StrictMock; |
22 | 22 |
23 namespace { | 23 namespace { |
24 std::unique_ptr<webrtc::AudioProcessing> CreateAudioProcessing() { | 24 std::unique_ptr<webrtc::AudioProcessing> CreateAudioProcessing() { |
25 webrtc::Config config; | 25 webrtc::Config config; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 EXPECT_CALL(*mock_aec_dump.get(), AddAudioProcessingState(_)) | 83 EXPECT_CALL(*mock_aec_dump.get(), AddAudioProcessingState(_)) |
84 .Times(Exactly(1)); | 84 .Times(Exactly(1)); |
85 | 85 |
86 EXPECT_CALL(*mock_aec_dump.get(), WriteCaptureStreamMessage()) | 86 EXPECT_CALL(*mock_aec_dump.get(), WriteCaptureStreamMessage()) |
87 .Times(Exactly(1)); | 87 .Times(Exactly(1)); |
88 | 88 |
89 apm->AttachAecDump(std::move(mock_aec_dump)); | 89 apm->AttachAecDump(std::move(mock_aec_dump)); |
90 apm->ProcessStream(fake_frame.get()); | 90 apm->ProcessStream(fake_frame.get()); |
91 } | 91 } |
OLD | NEW |