From 1ddadc95b0b2688cb68f36b28e086230b5dcad49 Mon Sep 17 00:00:00 2001 From: Jerome Jiang Date: Wed, 7 Nov 2018 21:35:35 -0800 Subject: [PATCH] Add operator<< to hadamard test. This quiets valgrind warning. Change-Id: I7c5e23ebb91cc67cf93678135b826b2bc8e9db2f --- test/hadamard_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/hadamard_test.cc b/test/hadamard_test.cc index 6f9bec07b..f524ed136 100644 --- a/test/hadamard_test.cc +++ b/test/hadamard_test.cc @@ -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 { public: virtual void SetUp() { -- 2.40.0