blob: 1fa7d243cc665a966cfc941aa673ebdb3d3fcfc2 [file] [log] [blame]
Patrik Höglundb6b29e02018-06-21 14:58:011/*
2 * Copyright (c) 2018 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 */
10
Jonas Olssona4d87372019-07-05 17:08:3311#include "api/test/create_video_quality_test_fixture.h"
12
Patrik Höglundb6b29e02018-06-21 14:58:0113#include <memory>
14#include <utility>
15
Patrik Höglundb6b29e02018-06-21 14:58:0116#include "video/video_quality_test.h"
Patrik Höglundb6b29e02018-06-21 14:58:0117
18namespace webrtc {
19
20std::unique_ptr<VideoQualityTestFixtureInterface>
21CreateVideoQualityTestFixture() {
22 // By default, we don't override the FEC module, so pass an empty factory.
Mirko Bonadei317a1f02019-09-17 15:06:1823 return std::make_unique<VideoQualityTest>(nullptr);
Patrik Höglundb6b29e02018-06-21 14:58:0124}
25
Jonas Olssona4d87372019-07-05 17:08:3326std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
Patrik Höglundb6b29e02018-06-21 14:58:0127 std::unique_ptr<FecControllerFactoryInterface> fec_controller_factory) {
Mirko Bonadei317a1f02019-09-17 15:06:1828 auto components =
29 std::make_unique<VideoQualityTestFixtureInterface::InjectionComponents>();
Artem Titove269cb42018-08-29 07:59:2330 components->fec_controller_factory = std::move(fec_controller_factory);
Mirko Bonadei317a1f02019-09-17 15:06:1831 return std::make_unique<VideoQualityTest>(std::move(components));
Artem Titove269cb42018-08-29 07:59:2332}
33
34std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
35 std::unique_ptr<VideoQualityTestFixtureInterface::InjectionComponents>
36 components) {
Mirko Bonadei317a1f02019-09-17 15:06:1837 return std::make_unique<VideoQualityTest>(std::move(components));
Patrik Höglundb6b29e02018-06-21 14:58:0138}
39
40} // namespace webrtc