summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-07-14 18:45:50 -0700
committerJames Zern <jzern@google.com>2014-07-14 18:45:50 -0700
commitc1259aa343aa9483b43d59d365c68677428bf511 (patch)
tree51ef39cd47f8b0215268fd8c7007653c519899bb /test
parent832e4f3c6dbab566cd2b20a81910fa12b0635ceb (diff)
downloadlibvpx-c1259aa343aa9483b43d59d365c68677428bf511.tar
libvpx-c1259aa343aa9483b43d59d365c68677428bf511.tar.gz
libvpx-c1259aa343aa9483b43d59d365c68677428bf511.tar.bz2
libvpx-c1259aa343aa9483b43d59d365c68677428bf511.zip
invalid_file_test: add an operator<< for DecodeParam
Improves the --gtest_list_tests output and avoids a valgrind warning in gtest's testing::internal2::PrintBytesInObjectTo() due to padding in the structure. old: VP9/InvalidFileTest. ReturnCode/0 # GetParam() = (0x9d5308, 16-byte object <01-00 00-00 00-00 00-00 37-02 73-00 00-00 00-00>) new: VP9/InvalidFileTest. ReturnCode/0 # GetParam() = (0x9d5308, threads: 1 file: invalid-vp90-01-v2.webm) Change-Id: Ifb9c66fba2e72272bd591a3f6273aeb6bda6af4a
Diffstat (limited to 'test')
-rw-r--r--test/invalid_file_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/invalid_file_test.cc b/test/invalid_file_test.cc
index 8d7114fac..9f37f5443 100644
--- a/test/invalid_file_test.cc
+++ b/test/invalid_file_test.cc
@@ -30,6 +30,10 @@ struct DecodeParam {
const char *filename;
};
+std::ostream &operator<<(std::ostream &os, const DecodeParam &dp) {
+ return os << "threads: " << dp.threads << " file: " << dp.filename;
+}
+
class InvalidFileTest
: public ::libvpx_test::DecoderTest,
public ::libvpx_test::CodecTestWithParam<DecodeParam> {