vp8_fragments_test.cc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 "third_party/googletest/src/include/gtest/gtest.h"
  11. #include "test/codec_factory.h"
  12. #include "test/video_source.h"
  13. namespace {
  14. class VP8FramgmentsTest : public ::libvpx_test::EncoderTest,
  15. public ::testing::Test {
  16. protected:
  17. VP8FramgmentsTest() : EncoderTest(&::libvpx_test::kVP8) {}
  18. virtual ~VP8FramgmentsTest() {}
  19. virtual void SetUp() {
  20. const unsigned long init_flags = // NOLINT(runtime/int)
  21. VPX_CODEC_USE_OUTPUT_PARTITION;
  22. InitializeConfig();
  23. SetMode(::libvpx_test::kRealTime);
  24. set_init_flags(init_flags);
  25. }
  26. };
  27. TEST_F(VP8FramgmentsTest, TestFragmentsEncodeDecode) {
  28. ::libvpx_test::RandomVideoSource video;
  29. ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
  30. }
  31. } // namespace