aboutsummaryrefslogtreecommitdiff
path: root/pc/rtpmediautils.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/rtpmediautils.h')
-rw-r--r--pc/rtpmediautils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pc/rtpmediautils.h b/pc/rtpmediautils.h
index 6de6f8f0af..5f02d89907 100644
--- a/pc/rtpmediautils.h
+++ b/pc/rtpmediautils.h
@@ -44,6 +44,14 @@ RtpTransceiverDirection RtpTransceiverDirectionWithRecvSet(
// Returns an unspecified string representation of the given direction.
const char* RtpTransceiverDirectionToString(RtpTransceiverDirection direction);
+#ifdef UNIT_TEST
+inline std::ostream& operator<<( // no-presubmit-check TODO(webrtc:8982)
+ std::ostream& os, // no-presubmit-check TODO(webrtc:8982)
+ RtpTransceiverDirection direction) {
+ return os << RtpTransceiverDirectionToString(direction);
+}
+#endif // UNIT_TEST
+
} // namespace webrtc
#endif // PC_RTPMEDIAUTILS_H_