blob: df8ad8b35fc10ff52260b00e138798326a53b2f9 [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
Karl Wiberg918f50c2018-07-05 11:40:33 +020016#include "absl/memory/memory.h"
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020017#include "api/test/videocodec_test_fixture.h"
18#include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h"
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020019
20namespace webrtc {
21namespace test {
22
Kári Tristan Helgason169005d2018-05-22 13:34:14 +020023using Config = VideoCodecTestFixture::Config;
24
Yves Gerey665174f2018-06-19 15:03:05 +020025std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
26 const Config& config) {
Karl Wiberg918f50c2018-07-05 11:40:33 +020027 return absl::make_unique<VideoCodecTestFixtureImpl>(config);
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020028}
29
Yves Gerey665174f2018-06-19 15:03:05 +020030std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
Kári Tristan Helgason169005d2018-05-22 13:34:14 +020031 const Config& config,
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020032 std::unique_ptr<VideoDecoderFactory> decoder_factory,
33 std::unique_ptr<VideoEncoderFactory> encoder_factory) {
Karl Wiberg918f50c2018-07-05 11:40:33 +020034 return absl::make_unique<VideoCodecTestFixtureImpl>(
Kári Tristan Helgason9d96e922018-05-04 11:56:55 +020035 config, std::move(decoder_factory), std::move(encoder_factory));
36}
37
38} // namespace test
39} // namespace webrtc