tor-browser

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

create_video_quality_test_fixture.cc (1188B)


      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_video_quality_test_fixture.h"
     12 
     13 #include <memory>
     14 #include <utility>
     15 
     16 #include "api/test/video_quality_test_fixture.h"
     17 #include "video/video_quality_test.h"
     18 
     19 namespace webrtc {
     20 
     21 std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
     22    VideoQualityTestFixtureInterface::InjectionComponents components) {
     23  return std::make_unique<VideoQualityTest>(std::move(components));
     24 }
     25 
     26 std::unique_ptr<VideoQualityTestFixtureInterface> CreateVideoQualityTestFixture(
     27    std::unique_ptr<VideoQualityTestFixtureInterface::InjectionComponents>
     28        components) {
     29  if (components == nullptr) {
     30    return CreateVideoQualityTestFixture();
     31  }
     32  return CreateVideoQualityTestFixture(std::move(*components));
     33 }
     34 
     35 }  // namespace webrtc