tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 10 | #ifndef AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |
| 11 | #define AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 12 | |
| 13 | #include <memory> |
| 14 | #include <string> |
| 15 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 16 | #include "test/call_test.h" |
| 17 | #include "test/fake_audio_device.h" |
| 18 | #include "test/single_threaded_task_queue.h" |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | namespace test { |
| 22 | |
| 23 | class AudioBweTest : public test::EndToEndTest { |
| 24 | public: |
| 25 | AudioBweTest(); |
| 26 | |
| 27 | protected: |
| 28 | virtual std::string AudioInputFile() = 0; |
| 29 | |
| 30 | virtual FakeNetworkPipe::Config GetNetworkPipeConfig() = 0; |
| 31 | |
| 32 | size_t GetNumVideoStreams() const override; |
| 33 | size_t GetNumAudioStreams() const override; |
| 34 | size_t GetNumFlexfecStreams() const override; |
| 35 | |
| 36 | std::unique_ptr<test::FakeAudioDevice::Capturer> CreateCapturer() override; |
| 37 | |
| 38 | void OnFakeAudioDevicesCreated( |
| 39 | test::FakeAudioDevice* send_audio_device, |
| 40 | test::FakeAudioDevice* recv_audio_device) override; |
| 41 | |
eladalon | 413ee9a | 2017-08-22 04:02:52 -0700 | [diff] [blame] | 42 | test::PacketTransport* CreateSendTransport( |
| 43 | SingleThreadedTaskQueueForTesting* task_queue, |
| 44 | Call* sender_call) override; |
| 45 | test::PacketTransport* CreateReceiveTransport( |
| 46 | SingleThreadedTaskQueueForTesting* task_queue) override; |
tschumim | 9d11764 | 2017-07-17 01:41:41 -0700 | [diff] [blame] | 47 | |
| 48 | void PerformTest() override; |
| 49 | |
| 50 | private: |
| 51 | test::FakeAudioDevice* send_audio_device_; |
| 52 | }; |
| 53 | |
| 54 | } // namespace test |
| 55 | } // namespace webrtc |
| 56 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 57 | #endif // AUDIO_TEST_AUDIO_BWE_INTEGRATION_TEST_H_ |