| 25 | using ::testing::MatchResultListener; |
| 26 | |
| 27 | class CelValueEqualImpl : public MatcherInterface<CelValue> { |
| 28 | public: |
| 29 | explicit CelValueEqualImpl(const CelValue& v) : value_(v) {} |
| 30 | |
| 31 | bool MatchAndExplain(CelValue arg, |
| 32 | MatchResultListener* listener) const override { |
| 33 | return CelValueEqual(arg, value_); |
| 34 | } |
| 35 | |
| 36 | void DescribeTo(std::ostream* os) const override { |
| 37 | *os << value_.DebugString(); |
| 38 | } |
| 39 | |
| 40 | private: |
| 41 | const CelValue& value_; |
| 42 | }; |
| 43 | |
| 44 | // used to implement matchers for CelValues |
| 45 | template <typename UnderlyingType> |