Chromium Code Reviews| 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); |
|
Henrik Grunell WebRTC
2015/08/12 14:46:30
As we talked about offline, it would be nice to sp
hbos
2015/08/14 14:09:39
If I see this clearly I think adding support for b
Henrik Grunell WebRTC
2015/08/18 14:25:11
Acknowledged.
|
| cricket::FakeTransportChannel* channel = |
| static_cast<cricket::FakeTransportChannel*>( |
| transport->CreateChannel(channel_stats.component)); |