]> granicus.if.org Git - libvpx/commitdiff
Add operator<< to hadamard test.
authorJerome Jiang <jianj@google.com>
Thu, 8 Nov 2018 05:35:35 +0000 (21:35 -0800)
committerJerome Jiang <jianj@google.com>
Thu, 8 Nov 2018 05:35:35 +0000 (21:35 -0800)
This quiets valgrind warning.

Change-Id: I7c5e23ebb91cc67cf93678135b826b2bc8e9db2f

test/hadamard_test.cc

index 6f9bec07b18e4ba30de8aef1fe77851654326350..f524ed1364ddbed9365d6dd01c6eef4f490c3e14 100644 (file)
@@ -124,6 +124,10 @@ struct HadamardFuncWithSize {
   int block_size;
 };
 
+std::ostream &operator<<(std::ostream &os, const HadamardFuncWithSize &hfs) {
+  return os << "block size: " << hfs.block_size;
+}
+
 class HadamardTestBase : public ::testing::TestWithParam<HadamardFuncWithSize> {
  public:
   virtual void SetUp() {