]> granicus.if.org Git - libvpx/commitdiff
invalid_file_test: quiet unused const warning
authorJames Zern <jzern@google.com>
Sat, 1 Oct 2016 18:49:02 +0000 (11:49 -0700)
committerJames Zern <jzern@google.com>
Sat, 1 Oct 2016 18:49:02 +0000 (11:49 -0700)
with --disable-vp9

Change-Id: I81bd603b02ee5d1b45a50aa9e7534f9da498b0e0

test/invalid_file_test.cc

index 3955b6e3f46c46b43413a05ae13c987d2f2e10bb..12eaa80e708aef1fd0a7113fbe65ff73d1fe6140 100644 (file)
@@ -120,6 +120,7 @@ class InvalidFileTest : public ::libvpx_test::DecoderTest,
 
 TEST_P(InvalidFileTest, ReturnCode) { RunTest(); }
 
+#if CONFIG_VP9_DECODER
 const DecodeParam kVP9InvalidFileTests[] = {
   { 1, "invalid-vp90-02-v2.webm" },
 #if CONFIG_VP9_HIGHBITDEPTH
@@ -147,6 +148,7 @@ const DecodeParam kVP9InvalidFileTests[] = {
 
 VP9_INSTANTIATE_TEST_CASE(InvalidFileTest,
                           ::testing::ValuesIn(kVP9InvalidFileTests));
+#endif  // CONFIG_VP9_DECODER
 
 // This class will include test vectors that are expected to fail
 // peek. However they are still expected to have no fatal failures.