Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019 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 | */ |
Artem Titov | d57628f | 2019-03-22 12:34:25 +0100 | [diff] [blame] | 10 | #ifndef API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_ |
| 11 | #define API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_ |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 12 | |
| 13 | #include <memory> |
Artem Titov | d57628f | 2019-03-22 12:34:25 +0100 | [diff] [blame] | 14 | #include <string> |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 15 | |
Artem Titov | d57628f | 2019-03-22 12:34:25 +0100 | [diff] [blame] | 16 | #include "api/test/audio_quality_analyzer_interface.h" |
| 17 | #include "api/test/peerconnection_quality_test_fixture.h" |
Artem Titov | 1ff3c58 | 2020-07-01 15:20:37 +0200 | [diff] [blame] | 18 | #include "api/test/time_controller.h" |
Artem Titov | d57628f | 2019-03-22 12:34:25 +0100 | [diff] [blame] | 19 | #include "api/test/video_quality_analyzer_interface.h" |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
Artem Titov | 0b44314 | 2019-03-20 11:11:08 +0100 | [diff] [blame] | 22 | namespace webrtc_pc_e2e { |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 23 | |
| 24 | // API is in development. Can be changed/removed without notice. |
Artem Titov | 1ff3c58 | 2020-07-01 15:20:37 +0200 | [diff] [blame] | 25 | |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 26 | // Create test fixture to establish test call between Alice and Bob. |
| 27 | // During the test Alice will be caller and Bob will answer the call. |
Artem Titov | 5983585 | 2019-02-27 17:44:13 +0100 | [diff] [blame] | 28 | // |test_case_name| is a name of test case, that will be used for all metrics |
| 29 | // reporting. |
Artem Titov | 1ff3c58 | 2020-07-01 15:20:37 +0200 | [diff] [blame] | 30 | // |time_controller| is used to manage all rtc::Thread's and TaskQueue |
| 31 | // instances. Instance of |time_controller| have to outlive created fixture. |
| 32 | // Returns a non-null PeerConnectionE2EQualityTestFixture instance. |
| 33 | std::unique_ptr<PeerConnectionE2EQualityTestFixture> |
| 34 | CreatePeerConnectionE2EQualityTestFixture( |
| 35 | std::string test_case_name, |
| 36 | TimeController& time_controller, |
| 37 | std::unique_ptr<AudioQualityAnalyzerInterface> audio_quality_analyzer, |
| 38 | std::unique_ptr<VideoQualityAnalyzerInterface> video_quality_analyzer); |
| 39 | |
Artem Titov | 0b44314 | 2019-03-20 11:11:08 +0100 | [diff] [blame] | 40 | } // namespace webrtc_pc_e2e |
Artem Titov | a6a273d | 2019-02-07 16:43:51 +0100 | [diff] [blame] | 41 | } // namespace webrtc |
| 42 | |
Artem Titov | d57628f | 2019-03-22 12:34:25 +0100 | [diff] [blame] | 43 | #endif // API_TEST_CREATE_PEERCONNECTION_QUALITY_TEST_FIXTURE_H_ |