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

Unified Diff: webrtc/api/rtpreceiverinterface.h

Issue 2813753002: Modified the rtp_receiver_unittests. (Closed)
Patch Set: Modified the rtp_receiver_unittests. Created 3 years, 8 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
Index: webrtc/api/rtpreceiverinterface.h
diff --git a/webrtc/api/rtpreceiverinterface.h b/webrtc/api/rtpreceiverinterface.h
index fd233abe317609d265ca187f54be4781a1a47b75..66958ff6bd422a6d683ccc46fc50bc40601f34f7 100644
--- a/webrtc/api/rtpreceiverinterface.h
+++ b/webrtc/api/rtpreceiverinterface.h
@@ -55,6 +55,11 @@ class RtpSource {
// TODO(zhihuang): Implement this to return real audio level.
rtc::Optional<int8_t> audio_level() const { return rtc::Optional<int8_t>(); }
+ bool operator==(const RtpSource& o) const {
+ return timestamp_ms_ == o.timestamp_ms() && source_id_ == o.source_id() &&
+ source_type_ == o.source_type();
+ }
+
private:
int64_t timestamp_ms_;
uint32_t source_id_;

Powered by Google App Engine
This is Rietveld 408576698