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 #ifndef WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ | 10 #ifndef WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |
11 #define WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ | 11 #define WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/test/call_test.h" | 16 #include "webrtc/test/call_test.h" |
17 #include "webrtc/test/fake_audio_device.h" | 17 #include "webrtc/test/fake_audio_device.h" |
| 18 #include "webrtc/test/single_threaded_task_queue.h" |
18 | 19 |
19 namespace webrtc { | 20 namespace webrtc { |
20 namespace test { | 21 namespace test { |
21 | 22 |
22 class AudioBweTest : public test::EndToEndTest { | 23 class AudioBweTest : public test::EndToEndTest { |
23 public: | 24 public: |
24 AudioBweTest(); | 25 AudioBweTest(); |
25 | 26 |
26 protected: | 27 protected: |
27 virtual std::string AudioInputFile() = 0; | 28 virtual std::string AudioInputFile() = 0; |
28 | 29 |
29 virtual FakeNetworkPipe::Config GetNetworkPipeConfig() = 0; | 30 virtual FakeNetworkPipe::Config GetNetworkPipeConfig() = 0; |
30 | 31 |
31 size_t GetNumVideoStreams() const override; | 32 size_t GetNumVideoStreams() const override; |
32 size_t GetNumAudioStreams() const override; | 33 size_t GetNumAudioStreams() const override; |
33 size_t GetNumFlexfecStreams() const override; | 34 size_t GetNumFlexfecStreams() const override; |
34 | 35 |
35 std::unique_ptr<test::FakeAudioDevice::Capturer> CreateCapturer() override; | 36 std::unique_ptr<test::FakeAudioDevice::Capturer> CreateCapturer() override; |
36 | 37 |
37 void OnFakeAudioDevicesCreated( | 38 void OnFakeAudioDevicesCreated( |
38 test::FakeAudioDevice* send_audio_device, | 39 test::FakeAudioDevice* send_audio_device, |
39 test::FakeAudioDevice* recv_audio_device) override; | 40 test::FakeAudioDevice* recv_audio_device) override; |
40 | 41 |
41 test::PacketTransport* CreateSendTransport(Call* sender_call) override; | 42 test::PacketTransport* CreateSendTransport( |
42 test::PacketTransport* CreateReceiveTransport() override; | 43 SingleThreadedTaskQueueForTesting* task_queue, |
| 44 Call* sender_call) override; |
| 45 test::PacketTransport* CreateReceiveTransport( |
| 46 SingleThreadedTaskQueueForTesting* task_queue) override; |
43 | 47 |
44 void PerformTest() override; | 48 void PerformTest() override; |
45 | 49 |
46 private: | 50 private: |
47 test::FakeAudioDevice* send_audio_device_; | 51 test::FakeAudioDevice* send_audio_device_; |
48 }; | 52 }; |
49 | 53 |
50 } // namespace test | 54 } // namespace test |
51 } // namespace webrtc | 55 } // namespace webrtc |
52 | 56 |
53 #endif // WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ | 57 #endif // WEBRTC_AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |
OLD | NEW |