blob: 1f618e5db8fa2a3511634268082653392a40c0a5 [file] [log] [blame]
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +02001/*
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"
17#include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h"
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020018
19namespace webrtc {
20namespace test {
21
Kári Tristan Helgason169005d2018-05-22 13:34:14 +020022using Config = VideoCodecTestFixture::Config;
23
Yves Gerey665174f2018-06-19 15:03:05 +020024std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
25 const Config& config) {
Mirko Bonadei317a1f02019-09-17 17:06:18 +020026 return std::make_unique<VideoCodecTestFixtureImpl>(config);
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020027}
28
Yves Gerey665174f2018-06-19 15:03:05 +020029std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
Kári Tristan Helgason169005d2018-05-22 13:34:14 +020030 const Config& config,
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020031 std::unique_ptr<VideoDecoderFactory> decoder_factory,
32 std::unique_ptr<VideoEncoderFactory> encoder_factory) {
Mirko Bonadei317a1f02019-09-17 17:06:18 +020033 return std::make_unique<VideoCodecTestFixtureImpl>(
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020034 config, std::move(decoder_factory), std::move(encoder_factory));
35}
36
37} // namespace test
38} // namespace webrtc