Commit 25c900c7 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

test_libvpx: fix valgrind failures

add an operator<<() for instances of
function_equivalence_test.h:FuncParam

Change-Id: Ifced8401443085bdbdccb97718564b0372b264b7
parent cfa83fd8
......@@ -42,6 +42,13 @@ struct FuncParam {
int bit_depth;
};
template <typename T>
std::ostream &operator<<(std::ostream &os, const FuncParam<T> &p) {
return os << "bit_depth:" << p.bit_depth
<< " function:" << reinterpret_cast<const void *>(p.ref_func)
<< " function:" << reinterpret_cast<const void *>(p.tst_func);
}
template <typename T>
class FunctionEquivalenceTest : public ::testing::TestWithParam<FuncParam<T> > {
public:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment