1 /* 2 * Copyright (c) 2014 The WebM 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 #include "gtest/gtest.h" 11 #include "test/codec_factory.h" 12 #include "test/video_source.h" 13 14 namespace { 15 16 class VP8FragmentsTest : public ::libvpx_test::EncoderTest, 17 public ::testing::Test { 18 protected: VP8FragmentsTest()19 VP8FragmentsTest() : EncoderTest(&::libvpx_test::kVP8) {} 20 ~VP8FragmentsTest() override = default; 21 SetUp()22 void SetUp() override { 23 const unsigned long init_flags = // NOLINT(runtime/int) 24 VPX_CODEC_USE_OUTPUT_PARTITION; 25 InitializeConfig(); 26 SetMode(::libvpx_test::kRealTime); 27 set_init_flags(init_flags); 28 } 29 }; 30 TEST_F(VP8FragmentsTest,TestFragmentsEncodeDecode)31TEST_F(VP8FragmentsTest, TestFragmentsEncodeDecode) { 32 ::libvpx_test::RandomVideoSource video; 33 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); 34 } 35 36 } // namespace 37