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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 1917053003: unique_ptr_migration: clean up references to scoped_ptr as of r389721 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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: content/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index 1350fd387f4c53cddb24594b1ecf13ba0690de30..dfa551c013df7b172167e2c7526ce867dd5df701 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include <stddef.h>
+
+#include <memory>
#include <utility>
#include <vector>
@@ -1138,11 +1140,14 @@ class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>,
false, REQUEST_CONTEXT_TYPE_LOCATION);
CommonNavigationParams common_params;
common_params.url = url;
- scoped_ptr<NavigationRequestInfo> request_info(new NavigationRequestInfo(
- common_params, begin_params, url, url::Origin(url), true, false, -1,
- scoped_refptr<ResourceRequestBody>()));
- scoped_ptr<NavigationURLLoader> test_loader = NavigationURLLoader::Create(
- browser_context_.get(), std::move(request_info), nullptr, &delegate);
+ std::unique_ptr<NavigationRequestInfo> request_info(
+ new NavigationRequestInfo(common_params, begin_params, url,
+ url::Origin(url), true, false, -1,
+ scoped_refptr<ResourceRequestBody>()));
+ std::unique_ptr<NavigationURLLoader> test_loader =
+ NavigationURLLoader::Create(browser_context_.get(),
+ std::move(request_info), nullptr,
+ &delegate);
// The navigation should fail with the expected error code.
delegate.WaitForRequestFailed();
@@ -2602,10 +2607,11 @@ TEST_P(ResourceDispatcherHostTest, CancelRequestsForContext) {
false, REQUEST_CONTEXT_TYPE_LOCATION);
CommonNavigationParams common_params;
common_params.url = download_url;
- scoped_ptr<NavigationRequestInfo> request_info(new NavigationRequestInfo(
- common_params, begin_params, download_url, url::Origin(download_url),
- true, false, -1, scoped_refptr<ResourceRequestBody>()));
- scoped_ptr<NavigationURLLoader> loader = NavigationURLLoader::Create(
+ std::unique_ptr<NavigationRequestInfo> request_info(
+ new NavigationRequestInfo(common_params, begin_params, download_url,
+ url::Origin(download_url), true, false, -1,
+ scoped_refptr<ResourceRequestBody>()));
+ std::unique_ptr<NavigationURLLoader> loader = NavigationURLLoader::Create(
browser_context_.get(), std::move(request_info), nullptr, &delegate);
// Wait until a response has been received and proceed with the response.
« no previous file with comments | « content/browser/android/popup_touch_handle_drawable.h ('k') | content/browser/renderer_host/browser_compositor_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698