Add a 1x1 enc/dec test.
authorAlex Converse <aconverse@google.com>
Wed, 1 Oct 2014 18:40:34 +0000 (11:40 -0700)
committerAlex Converse <aconverse@google.com>
Thu, 2 Oct 2014 19:33:02 +0000 (12:33 -0700)
Change-Id: I777f49a3c2c2aaa04ae23904396bd7254e1afd8c

test/frame_size_tests.cc

index 1c9a522..95cc66a 100644 (file)
@@ -84,4 +84,13 @@ TEST_F(VP9FrameSizeTestsLarge, ValidSizes) {
   ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
 #endif
 }
+
+TEST_F(VP9FrameSizeTestsLarge, OneByOneVideo) {
+  ::libvpx_test::RandomVideoSource video;
+
+  video.SetSize(1, 1);
+  video.set_limit(2);
+  expected_res_ = VPX_CODEC_OK;
+  ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
+}
 }  // namespace