Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [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 "api/test/create_videocodec_test_fixture.h" |
| 12 | |
| 13 | #include <memory> |
| 14 | #include <utility> |
| 15 | |
| 16 | #include "api/test/videocodec_test_fixture.h" |
Dor Hen | 1921fa5 | 2024-08-13 12:43:47 | [diff] [blame] | 17 | #include "api/video_codecs/video_decoder_factory.h" |
| 18 | #include "api/video_codecs/video_encoder_factory.h" |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 19 | #include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h" |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 20 | |
| 21 | namespace webrtc { |
| 22 | namespace test { |
| 23 | |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 24 | using Config = VideoCodecTestFixture::Config; |
| 25 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 26 | std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture( |
| 27 | const Config& config) { |
Mirko Bonadei | 317a1f0 | 2019-09-17 15:06:18 | [diff] [blame] | 28 | return std::make_unique<VideoCodecTestFixtureImpl>(config); |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 29 | } |
| 30 | |
Yves Gerey | 665174f | 2018-06-19 13:03:05 | [diff] [blame] | 31 | std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture( |
Kári Tristan Helgason | 169005d | 2018-05-22 11:34:14 | [diff] [blame] | 32 | const Config& config, |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 33 | std::unique_ptr<VideoDecoderFactory> decoder_factory, |
| 34 | std::unique_ptr<VideoEncoderFactory> encoder_factory) { |
Mirko Bonadei | 317a1f0 | 2019-09-17 15:06:18 | [diff] [blame] | 35 | return std::make_unique<VideoCodecTestFixtureImpl>( |
Kári Tristan Helgason | 9d96e92 | 2018-05-04 09:56:55 | [diff] [blame] | 36 | config, std::move(decoder_factory), std::move(encoder_factory)); |
| 37 | } |
| 38 | |
| 39 | } // namespace test |
| 40 | } // namespace webrtc |