Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: webrtc/api/rtcstatscollector_unittest.cc

Issue 2445343003: PrintTo functions for RTCStats added in rtcstatscollector_unittest.cc (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698