Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 1 | /* |
| 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 | |
| 11 | #include <memory> |
| 12 | #include <utility> |
| 13 | |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 14 | #include "absl/memory/memory.h" |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 15 | #include "api/test/create_video_quality_test_fixture.h" |
| 16 | #include "video/video_quality_test.h" |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | std::unique_ptr<VideoQualityTestFixtureInterface> |
| 21 | CreateVideoQualityTestFixture() { |
| 22 | // By default, we don't override the FEC module, so pass an empty factory. |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 23 | return absl::make_unique<VideoQualityTest>(nullptr); |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | std::unique_ptr<VideoQualityTestFixtureInterface> |
| 27 | CreateVideoQualityTestFixture( |
| 28 | std::unique_ptr<FecControllerFactoryInterface> fec_controller_factory) { |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 29 | return absl::make_unique<VideoQualityTest>(std::move(fec_controller_factory)); |
Patrik Höglund | b6b29e0 | 2018-06-21 16:58:01 +0200 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | } // namespace webrtc |
| 33 | |
| 34 | |