blob: 9a0aacc7c2873d7480a8d9d1fcdcfd6bb5dceddb [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"
18#include "rtc_base/ptr_util.h"
19
20namespace webrtc {
21namespace test {
22
23std::unique_ptr<VideoCodecTestFixture>
24CreateVideoCodecTestFixture(const TestConfig& config) {
25 return rtc::MakeUnique<VideoCodecTestFixtureImpl>(config);
26}
27
28std::unique_ptr<VideoCodecTestFixture>
29CreateVideoCodecTestFixture(
30 const TestConfig& config,
31 std::unique_ptr<VideoDecoderFactory> decoder_factory,
32 std::unique_ptr<VideoEncoderFactory> encoder_factory) {
33 return rtc::MakeUnique<VideoCodecTestFixtureImpl>(
34 config, std::move(decoder_factory), std::move(encoder_factory));
35}
36
37} // namespace test
38} // namespace webrtc