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

Unified Diff: ios/web/net/web_http_protocol_handler_delegate_unittest.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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
« no previous file with comments | « ios/web/net/request_tracker_impl_unittest.mm ('k') | ios/web/public/app/web_main.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/web_http_protocol_handler_delegate_unittest.mm
diff --git a/ios/web/net/web_http_protocol_handler_delegate_unittest.mm b/ios/web/net/web_http_protocol_handler_delegate_unittest.mm
index 2e353fc1c73d666e64563233ddcfd2525c2321be..bb53e6986e1fc23c5b8b2061278998c5d17f366d 100644
--- a/ios/web/net/web_http_protocol_handler_delegate_unittest.mm
+++ b/ios/web/net/web_http_protocol_handler_delegate_unittest.mm
@@ -6,9 +6,11 @@
#import <Foundation/Foundation.h>
+#include <memory>
+
#include "base/mac/scoped_nsobject.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "ios/web/public/test/scoped_testing_web_client.h"
@@ -51,12 +53,12 @@ class WebHTTPProtocolHandlerDelegateTest : public testing::Test {
: context_getter_(new net::TestURLRequestContextGetter(
base::ThreadTaskRunnerHandle::Get())),
delegate_(new WebHTTPProtocolHandlerDelegate(context_getter_.get())),
- web_client_(make_scoped_ptr(new AppSpecificURLTestWebClient)) {}
+ web_client_(base::WrapUnique(new AppSpecificURLTestWebClient)) {}
protected:
base::MessageLoop message_loop_;
scoped_refptr<net::URLRequestContextGetter> context_getter_;
- scoped_ptr<WebHTTPProtocolHandlerDelegate> delegate_;
+ std::unique_ptr<WebHTTPProtocolHandlerDelegate> delegate_;
web::ScopedTestingWebClient web_client_;
};
« no previous file with comments | « ios/web/net/request_tracker_impl_unittest.mm ('k') | ios/web/public/app/web_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698