Index: webrtc/api/quicdatatransport_unittest.cc |
diff --git a/webrtc/api/quicdatatransport_unittest.cc b/webrtc/api/quicdatatransport_unittest.cc |
index ef9af36b852882fb6fd76990d563518432e65f54..d668c55b0bfbb732ced49deeebdaa826d4641dd2 100644 |
--- a/webrtc/api/quicdatatransport_unittest.cc |
+++ b/webrtc/api/quicdatatransport_unittest.cc |
@@ -10,6 +10,7 @@ |
#include "webrtc/api/quicdatatransport.h" |
+#include <memory> |
#include <set> |
#include <string> |
#include <unordered_map> |
@@ -71,7 +72,7 @@ class QuicDataTransportPeer { |
void GenerateCertificateAndFingerprint() { |
rtc::scoped_refptr<rtc::RTCCertificate> local_cert = |
- rtc::RTCCertificate::Create(rtc::scoped_ptr<rtc::SSLIdentity>( |
+ rtc::RTCCertificate::Create(std::unique_ptr<rtc::SSLIdentity>( |
rtc::SSLIdentity::Generate("cert_name", rtc::KT_DEFAULT))); |
quic_transport_channel_.SetLocalCertificate(local_cert); |
local_fingerprint_.reset(CreateFingerprint(local_cert.get())); |
@@ -84,7 +85,7 @@ class QuicDataTransportPeer { |
ice_transport_channel_->SetDestination(other_peer->ice_transport_channel_); |
} |
- rtc::scoped_ptr<rtc::SSLFingerprint>& local_fingerprint() { |
+ std::unique_ptr<rtc::SSLFingerprint>& local_fingerprint() { |
return local_fingerprint_; |
} |
@@ -116,7 +117,7 @@ class QuicDataTransportPeer { |
rtc::SSLFingerprint* CreateFingerprint(rtc::RTCCertificate* cert) { |
std::string digest_algorithm; |
cert->ssl_certificate().GetSignatureDigestAlgorithm(&digest_algorithm); |
- rtc::scoped_ptr<rtc::SSLFingerprint> fingerprint( |
+ std::unique_ptr<rtc::SSLFingerprint> fingerprint( |
rtc::SSLFingerprint::Create(digest_algorithm, cert->identity())); |
return fingerprint.release(); |
} |
@@ -124,7 +125,7 @@ class QuicDataTransportPeer { |
QuicDataTransport quic_data_transport_; |
FakeTransportChannel* ice_transport_channel_; |
QuicTransportChannel quic_transport_channel_; |
- rtc::scoped_ptr<rtc::SSLFingerprint> local_fingerprint_; |
+ std::unique_ptr<rtc::SSLFingerprint> local_fingerprint_; |
}; |
class QuicDataTransportTest : public testing::Test { |
@@ -154,9 +155,9 @@ class QuicDataTransportTest : public testing::Test { |
peer1_.quic_transport_channel()->SetSslRole(rtc::SSL_CLIENT); |
peer2_.quic_transport_channel()->SetSslRole(rtc::SSL_SERVER); |
- rtc::scoped_ptr<rtc::SSLFingerprint>& peer1_fingerprint = |
+ std::unique_ptr<rtc::SSLFingerprint>& peer1_fingerprint = |
peer1_.local_fingerprint(); |
- rtc::scoped_ptr<rtc::SSLFingerprint>& peer2_fingerprint = |
+ std::unique_ptr<rtc::SSLFingerprint>& peer2_fingerprint = |
peer2_.local_fingerprint(); |
peer1_.quic_transport_channel()->SetRemoteFingerprint( |