diff --git a/test/byte_alignment_test.cc b/test/byte_alignment_test.cc index aa4b78b9a..3a808b046 100644 --- a/test/byte_alignment_test.cc +++ b/test/byte_alignment_test.cc @@ -21,14 +21,14 @@ namespace { +#if CONFIG_WEBM_IO + const int kLegacyByteAlignment = 0; const int kLegacyYPlaneByteAlignment = 32; const int kNumPlanesToCheck = 3; const char kVP9TestFile[] = "vp90-2-02-size-lf-1920x1080.webm"; const char kVP9Md5File[] = "vp90-2-02-size-lf-1920x1080.webm.md5"; -#if CONFIG_WEBM_IO - struct ByteAlignmentTestParam { int byte_alignment; vpx_codec_err_t expected_value; diff --git a/test/external_frame_buffer_test.cc b/test/external_frame_buffer_test.cc index d02dca2be..2570f44eb 100644 --- a/test/external_frame_buffer_test.cc +++ b/test/external_frame_buffer_test.cc @@ -24,7 +24,6 @@ namespace { const int kVideoNameParam = 1; -const char kVP9TestFile[] = "vp90-2-02-size-lf-1920x1080.webm"; struct ExternalFrameBuffer { uint8_t *data; @@ -155,6 +154,8 @@ class ExternalFrameBufferList { ExternalFrameBuffer *ext_fb_list_; }; +#if CONFIG_WEBM_IO + // Callback used by libvpx to request the application to return a frame // buffer of at least |min_size| in bytes. int get_vp9_frame_buffer(void *user_priv, size_t min_size, @@ -197,6 +198,8 @@ int do_not_release_vp9_frame_buffer(void *user_priv, return 0; } +#endif // CONFIG_WEBM_IO + // Class for testing passing in external frame buffers to libvpx. class ExternalFrameBufferMD5Test : public ::libvpx_test::DecoderTest, @@ -278,6 +281,8 @@ class ExternalFrameBufferMD5Test }; #if CONFIG_WEBM_IO +const char kVP9TestFile[] = "vp90-2-02-size-lf-1920x1080.webm"; + // Class for testing passing in external frame buffers to libvpx. class ExternalFrameBufferTest : public ::testing::Test { protected: