2019-02-07 16:43:51 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-03-22 12:34:25 +01:00
|
|
|
#include "api/test/create_peerconnection_quality_test_fixture.h"
|
2019-02-07 16:43:51 +01:00
|
|
|
|
2019-09-17 17:06:18 +02:00
|
|
|
#include <memory>
|
2024-08-13 05:43:47 -07:00
|
|
|
#include <string>
|
2019-02-07 16:43:51 +01:00
|
|
|
#include <utility>
|
|
|
|
|
|
2024-08-13 05:43:47 -07:00
|
|
|
#include "api/test/audio_quality_analyzer_interface.h"
|
2022-09-21 16:08:03 +02:00
|
|
|
#include "api/test/metrics/global_metrics_logger_and_exporter.h"
|
2024-08-13 05:43:47 -07:00
|
|
|
#include "api/test/peerconnection_quality_test_fixture.h"
|
2020-07-01 15:20:37 +02:00
|
|
|
#include "api/test/time_controller.h"
|
2024-08-13 05:43:47 -07:00
|
|
|
#include "api/test/video_quality_analyzer_interface.h"
|
2019-02-07 16:43:51 +01:00
|
|
|
#include "test/pc/e2e/peer_connection_quality_test.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
2019-03-20 11:11:08 +01:00
|
|
|
namespace webrtc_pc_e2e {
|
2019-02-07 16:43:51 +01:00
|
|
|
|
2020-07-01 15:20:37 +02:00
|
|
|
std::unique_ptr<PeerConnectionE2EQualityTestFixture>
|
|
|
|
|
CreatePeerConnectionE2EQualityTestFixture(
|
|
|
|
|
std::string test_case_name,
|
2020-07-06 10:57:28 +02:00
|
|
|
TimeController& time_controller,
|
2020-07-01 15:20:37 +02:00
|
|
|
std::unique_ptr<AudioQualityAnalyzerInterface> audio_quality_analyzer,
|
|
|
|
|
std::unique_ptr<VideoQualityAnalyzerInterface> video_quality_analyzer) {
|
|
|
|
|
return std::make_unique<PeerConnectionE2EQualityTest>(
|
2020-07-06 10:57:28 +02:00
|
|
|
std::move(test_case_name), time_controller,
|
2022-09-21 16:08:03 +02:00
|
|
|
std::move(audio_quality_analyzer), std::move(video_quality_analyzer),
|
2022-09-23 17:37:16 +02:00
|
|
|
test::GetGlobalMetricsLogger());
|
2020-07-01 15:20:37 +02:00
|
|
|
}
|
|
|
|
|
|
2019-03-20 11:11:08 +01:00
|
|
|
} // namespace webrtc_pc_e2e
|
2019-02-07 16:43:51 +01:00
|
|
|
} // namespace webrtc
|