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

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: 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..dd92060afd6264757ad5b300439985db92ee4e0a 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 *this->certificate_ ==
tommi (sloooow) - chröme 2016/04/29 12:50:51 remove "this->"
hbos_chromium 2016/04/29 13:05:20 Done.
+ *static_cast<const RTCCertificate&>(other).certificate_;
+}
+
const rtc::scoped_refptr<rtc::RTCCertificate>&
RTCCertificate::rtcCertificate() const {
return certificate_;

Powered by Google App Engine
This is Rietveld 408576698