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

Unified Diff: public/platform/WebRTCSessionDescription.h

Issue 1010393002: Fix issue of localDescription and remoteDescription getter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test case crash. Created 5 years, 7 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 | « Source/modules/mediastream/RTCVoidRequestImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebRTCSessionDescription.h
diff --git a/public/platform/WebRTCSessionDescription.h b/public/platform/WebRTCSessionDescription.h
index a4b174614511243ea34c21bb596350decb9752b7..561f1be35dbf0afc61cfe8918e04b4d583254ab4 100644
--- a/public/platform/WebRTCSessionDescription.h
+++ b/public/platform/WebRTCSessionDescription.h
@@ -63,6 +63,14 @@ public:
assign(other);
return *this;
}
+ bool operator==(const WebRTCSessionDescription& other)
+ {
+ return sdp() == other.sdp() && type() == other.type();
+ }
+ bool operator!=(const WebRTCSessionDescription& other)
+ {
+ return !(*this == other);
+ }
BLINK_PLATFORM_EXPORT void assign(const WebRTCSessionDescription&);
« no previous file with comments | « Source/modules/mediastream/RTCVoidRequestImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698