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)); |