| Index: webrtc/base/rtccertificate_unittests.cc
|
| diff --git a/webrtc/base/rtccertificate_unittests.cc b/webrtc/base/rtccertificate_unittests.cc
|
| index 84c854478b219773b44c9910cef3c400b4eca72d..7795fe7a18faf6383415d368e912d6f39a81a1c3 100644
|
| --- a/webrtc/base/rtccertificate_unittests.cc
|
| +++ b/webrtc/base/rtccertificate_unittests.cc
|
| @@ -8,6 +8,7 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| +#include <memory>
|
| #include <utility>
|
|
|
| #include "webrtc/base/checks.h"
|
| @@ -16,7 +17,6 @@
|
| #include "webrtc/base/logging.h"
|
| #include "webrtc/base/rtccertificate.h"
|
| #include "webrtc/base/safe_conversions.h"
|
| -#include "webrtc/base/scoped_ptr.h"
|
| #include "webrtc/base/sslidentity.h"
|
| #include "webrtc/base/thread.h"
|
| #include "webrtc/base/timeutils.h"
|
| @@ -77,7 +77,7 @@ class RTCCertificateTest : public testing::Test {
|
| // is fast to generate.
|
| params.key_params = KeyParams::ECDSA();
|
|
|
| - scoped_ptr<SSLIdentity> identity(SSLIdentity::GenerateForTest(params));
|
| + std::unique_ptr<SSLIdentity> identity(SSLIdentity::GenerateForTest(params));
|
| return RTCCertificate::Create(std::move(identity));
|
| }
|
| };
|
| @@ -85,7 +85,7 @@ class RTCCertificateTest : public testing::Test {
|
| TEST_F(RTCCertificateTest, NewCertificateNotExpired) {
|
| // Generate a real certificate without specifying the expiration time.
|
| // Certificate type doesn't matter, using ECDSA because it's fast to generate.
|
| - scoped_ptr<SSLIdentity> identity(
|
| + std::unique_ptr<SSLIdentity> identity(
|
| SSLIdentity::Generate(kTestCertCommonName, KeyParams::ECDSA()));
|
| scoped_refptr<RTCCertificate> certificate =
|
| RTCCertificate::Create(std::move(identity));
|
|
|