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

Unified Diff: webrtc/api/dtlsidentitystore_unittest.cc

Issue 1920043002: Replace scoped_ptr with unique_ptr in webrtc/base/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixes for compile errors. Created 4 years, 8 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: webrtc/api/dtlsidentitystore_unittest.cc
diff --git a/webrtc/api/dtlsidentitystore_unittest.cc b/webrtc/api/dtlsidentitystore_unittest.cc
index 809e885216c2c4edcfe409064b470f9be18687c0..30d51b8e21fe54ccc97ab4610a4ce9998881d46c 100644
--- a/webrtc/api/dtlsidentitystore_unittest.cc
+++ b/webrtc/api/dtlsidentitystore_unittest.cc
@@ -10,6 +10,8 @@
#include "webrtc/api/dtlsidentitystore.h"
+#include <memory>
+
#include "webrtc/api/webrtcsessiondescriptionfactory.h"
#include "webrtc/base/gunit.h"
#include "webrtc/base/logging.h"
@@ -34,7 +36,7 @@ class MockDtlsIdentityRequestObserver :
LOG(LS_WARNING) << "The string version of OnSuccess is called unexpectedly";
EXPECT_TRUE(false);
}
- void OnSuccess(rtc::scoped_ptr<rtc::SSLIdentity> identity) override {
+ void OnSuccess(std::unique_ptr<rtc::SSLIdentity> identity) override {
EXPECT_FALSE(call_back_called_);
call_back_called_ = true;
last_request_success_ = true;
@@ -77,8 +79,8 @@ class DtlsIdentityStoreTest : public testing::Test {
rtc::CleanupSSL();
}
- rtc::scoped_ptr<rtc::Thread> worker_thread_;
- rtc::scoped_ptr<DtlsIdentityStoreImpl> store_;
+ std::unique_ptr<rtc::Thread> worker_thread_;
+ std::unique_ptr<DtlsIdentityStoreImpl> store_;
rtc::scoped_refptr<MockDtlsIdentityRequestObserver> observer_;
};

Powered by Google App Engine
This is Rietveld 408576698