diff --git a/webrtc/api/rtcstatscollector_unittest.cc b/webrtc/api/rtcstatscollector_unittest.cc index 8686056629..97ede90207 100644 --- a/webrtc/api/rtcstatscollector_unittest.cc +++ b/webrtc/api/rtcstatscollector_unittest.cc @@ -11,6 +11,7 @@ #include "webrtc/api/rtcstatscollector.h" #include +#include #include #include @@ -41,6 +42,35 @@ using testing::ReturnRef; namespace webrtc { +// These are used by gtest code, such as if |EXPECT_EQ| fails. +void PrintTo(const RTCCertificateStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCDataChannelStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCIceCandidatePairStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCLocalIceCandidateStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCRemoteIceCandidateStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCPeerConnectionStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + +void PrintTo(const RTCTransportStats& stats, ::std::ostream* os) { + *os << stats.ToString(); +} + namespace { const int64_t kGetStatsReportTimeoutMs = 1000;