summaryrefslogtreecommitdiffstats
path: root/media/libvpx/libvpx/test/vp8_fragments_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/libvpx/libvpx/test/vp8_fragments_test.cc')
-rw-r--r--media/libvpx/libvpx/test/vp8_fragments_test.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/media/libvpx/libvpx/test/vp8_fragments_test.cc b/media/libvpx/libvpx/test/vp8_fragments_test.cc
new file mode 100644
index 0000000000..01b4c2120e
--- /dev/null
+++ b/media/libvpx/libvpx/test/vp8_fragments_test.cc
@@ -0,0 +1,36 @@
+/*
+ * 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 {
+
+class VP8FragmentsTest : public ::libvpx_test::EncoderTest,
+ public ::testing::Test {
+ protected:
+ VP8FragmentsTest() : EncoderTest(&::libvpx_test::kVP8) {}
+ ~VP8FragmentsTest() override = default;
+
+ void SetUp() override {
+ 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(VP8FragmentsTest, TestFragmentsEncodeDecode) {
+ ::libvpx_test::RandomVideoSource video;
+ ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
+}
+
+} // namespace