tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

create_videocodec_test_fixture.cc (1361B)


      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"
     17 #include "api/video_codecs/video_decoder_factory.h"
     18 #include "api/video_codecs/video_encoder_factory.h"
     19 #include "modules/video_coding/codecs/test/videocodec_test_fixture_impl.h"
     20 
     21 namespace webrtc {
     22 namespace test {
     23 
     24 using Config = VideoCodecTestFixture::Config;
     25 
     26 std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
     27    const Config& config) {
     28  return std::make_unique<VideoCodecTestFixtureImpl>(config);
     29 }
     30 
     31 std::unique_ptr<VideoCodecTestFixture> CreateVideoCodecTestFixture(
     32    const Config& config,
     33    std::unique_ptr<VideoDecoderFactory> decoder_factory,
     34    std::unique_ptr<VideoEncoderFactory> encoder_factory) {
     35  return std::make_unique<VideoCodecTestFixtureImpl>(
     36      config, std::move(decoder_factory), std::move(encoder_factory));
     37 }
     38 
     39 }  // namespace test
     40 }  // namespace webrtc