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

Unified Diff: talk/app/webrtc/statscollector_unittest.cc

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master Created 5 years, 4 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: talk/app/webrtc/statscollector_unittest.cc
diff --git a/talk/app/webrtc/statscollector_unittest.cc b/talk/app/webrtc/statscollector_unittest.cc
index ab9181f4875d78a5904e94201e32e1915fe1dcdd..bb9adee45db5e19418984a2304464298d51fc816 100644
--- a/talk/app/webrtc/statscollector_unittest.cc
+++ b/talk/app/webrtc/statscollector_unittest.cc
@@ -656,7 +656,10 @@ class StatsCollectorTest : public testing::Test {
transport_stats;
// Fake certificates to report.
- rtc::FakeSSLIdentity local_identity(local_cert);
+ rtc::scoped_refptr<webrtc::DtlsCertificate> local_dtlscert =
+ webrtc::DtlsCertificate::Create(
+ rtc::scoped_ptr<rtc::FakeSSLIdentity>(
+ new rtc::FakeSSLIdentity(local_cert)).Pass());
rtc::scoped_ptr<rtc::FakeSSLCertificate> remote_cert_copy(
remote_cert.GetReference());
@@ -666,7 +669,7 @@ class StatsCollectorTest : public testing::Test {
session_.signaling_thread(),
session_.worker_thread(),
transport_stats.content_name));
- transport->SetIdentity(&local_identity);
+ transport->SetCertificate(local_dtlscert);
cricket::FakeTransportChannel* channel =
static_cast<cricket::FakeTransportChannel*>(
transport->CreateChannel(channel_stats.component));

Powered by Google App Engine
This is Rietveld 408576698