1 #pragma once 2 3 #include "metric_value.hpp" 4 5 #include <gmock/gmock.h> 6 7 inline void PrintTo(const MetricValue& o, std::ostream* os) 8 { 9 (*os) << "{ id: " << o.id << ", metadata: " << o.metadata 10 << ", value: " << o.value << ", timestamp: " << o.timestamp << " }"; 11 } 12 13 inline bool operator==(const MetricValue& left, const MetricValue& right) 14 { 15 return std::tie(left.id, left.metadata, left.value, left.timestamp) == 16 std::tie(right.id, right.metadata, right.value, right.timestamp); 17 }