vp8_fragments_test.cc 1.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 *  Copyright (c) 2014 The WebM project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/video_source.h"

namespace {

clang-format's avatar
clang-format committed
16 17
class VP8FramgmentsTest : public ::libvpx_test::EncoderTest,
                          public ::testing::Test {
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
 protected:
  VP8FramgmentsTest() : EncoderTest(&::libvpx_test::kVP8) {}
  virtual ~VP8FramgmentsTest() {}

  virtual void SetUp() {
    const unsigned long init_flags =  // NOLINT(runtime/int)
        VPX_CODEC_USE_OUTPUT_PARTITION;
    InitializeConfig();
    SetMode(::libvpx_test::kRealTime);
    set_init_flags(init_flags);
  }
};

TEST_F(VP8FramgmentsTest, TestFragmentsEncodeDecode) {
  ::libvpx_test::RandomVideoSource video;
  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
}

}  // namespace