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

Unified Diff: content/renderer/media/rtc_certificate.cc

Issue 1932173002: RTCCertificate equals method for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved equals test function to internals Created 4 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: content/renderer/media/rtc_certificate.cc
diff --git a/content/renderer/media/rtc_certificate.cc b/content/renderer/media/rtc_certificate.cc
index 7c2ff28923800490b00dad62bb6bdbc92c3fc423..ad890c1130899d942c5d0b3d7f455870903cf464 100644
--- a/content/renderer/media/rtc_certificate.cc
+++ b/content/renderer/media/rtc_certificate.cc
@@ -32,6 +32,11 @@ uint64_t RTCCertificate::expires() const {
return certificate_->Expires();
}
+bool RTCCertificate::equals(const blink::WebRTCCertificate& other) const {
+ return *certificate_ ==
+ *static_cast<const RTCCertificate&>(other).certificate_;
+}
+
const rtc::scoped_refptr<rtc::RTCCertificate>&
RTCCertificate::rtcCertificate() const {
return certificate_;
« no previous file with comments | « content/renderer/media/rtc_certificate.h ('k') | third_party/WebKit/Source/modules/mediastream/RTCCertificate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698