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 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "webrtc/api/test/mock_audio_mixer.h" | 15 #include "webrtc/api/test/mock_audio_mixer.h" |
16 #include "webrtc/audio/audio_receive_stream.h" | 16 #include "webrtc/audio/audio_receive_stream.h" |
17 #include "webrtc/audio/conversion.h" | 17 #include "webrtc/audio/conversion.h" |
18 #include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h" | 18 #include "webrtc/logging/rtc_event_log/mock/mock_rtc_event_log.h" |
19 #include "webrtc/modules/audio_coding/codecs/mock/mock_audio_decoder_factory.h" | |
20 #include "webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller
.h" | 19 #include "webrtc/modules/bitrate_controller/include/mock/mock_bitrate_controller
.h" |
21 #include "webrtc/modules/pacing/packet_router.h" | 20 #include "webrtc/modules/pacing/packet_router.h" |
22 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 21 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
23 #include "webrtc/test/gtest.h" | 22 #include "webrtc/test/gtest.h" |
| 23 #include "webrtc/test/mock_audio_decoder_factory.h" |
24 #include "webrtc/test/mock_voe_channel_proxy.h" | 24 #include "webrtc/test/mock_voe_channel_proxy.h" |
25 #include "webrtc/test/mock_voice_engine.h" | 25 #include "webrtc/test/mock_voice_engine.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 namespace test { | 28 namespace test { |
29 namespace { | 29 namespace { |
30 | 30 |
31 using testing::_; | 31 using testing::_; |
32 using testing::FloatEq; | 32 using testing::FloatEq; |
33 using testing::Return; | 33 using testing::Return; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); | 353 EXPECT_CALL(helper.voice_engine(), StartPlayout(_)).WillOnce(Return(0)); |
354 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); | 354 EXPECT_CALL(helper.voice_engine(), StopPlayout(_)); |
355 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) | 355 EXPECT_CALL(*helper.audio_mixer(), AddSource(&recv_stream)) |
356 .WillOnce(Return(true)); | 356 .WillOnce(Return(true)); |
357 | 357 |
358 recv_stream.Start(); | 358 recv_stream.Start(); |
359 } | 359 } |
360 } // namespace test | 360 } // namespace test |
361 } // namespace webrtc | 361 } // namespace webrtc |
OLD | NEW |