ref: 51906ad6e35e0be03d19ba2fa1f31b31d1aef397
parent: dee831c484c7e4a95a78c96c5264a9a3f5df931a
author: James Zern <[email protected]>
date: Tue Feb 2 14:32:25 EST 2016
tests: quiet some warnings w/--disable-webm-io unused-functions/variables Change-Id: Id7a2c345442129d84ec1482e38fcdc4bc9eaad7d
--- a/test/byte_alignment_test.cc
+++ b/test/byte_alignment_test.cc
@@ -21,13 +21,13 @@
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;
--- 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 @@
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 @@
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 @@
};
#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: