Index: webrtc/api/rtcstatscollector_unittest.cc |
diff --git a/webrtc/api/rtcstatscollector_unittest.cc b/webrtc/api/rtcstatscollector_unittest.cc |
index 868605662988ced0a9c6c16f7297dfc0c3182560..97ede90207176fb3f986703ac871b676868283f1 100644 |
--- a/webrtc/api/rtcstatscollector_unittest.cc |
+++ b/webrtc/api/rtcstatscollector_unittest.cc |
@@ -11,6 +11,7 @@ |
#include "webrtc/api/rtcstatscollector.h" |
#include <memory> |
+#include <ostream> |
#include <string> |
#include <vector> |
@@ -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; |