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

Unified Diff: content/test/test_navigation_url_loader_delegate.h

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/test/test_navigation_url_loader_delegate.h
diff --git a/content/test/test_navigation_url_loader_delegate.h b/content/test/test_navigation_url_loader_delegate.h
index e5c3c21882f3218d5f2c25cc9dd74bef32a593e8..d2ce77506681fefb5d26932bf6cffa1c4eef1fdd 100644
--- a/content/test/test_navigation_url_loader_delegate.h
+++ b/content/test/test_navigation_url_loader_delegate.h
@@ -5,9 +5,10 @@
#ifndef CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_
#define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "content/browser/loader/navigation_url_loader_delegate.h"
#include "net/url_request/redirect_info.h"
@@ -54,7 +55,7 @@ class TestNavigationURLLoaderDelegate : public NavigationURLLoaderDelegate {
const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response) override;
void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
- scoped_ptr<StreamHandle> body) override;
+ std::unique_ptr<StreamHandle> body) override;
void OnRequestFailed(bool in_cache, int net_error) override;
void OnRequestStarted(base::TimeTicks timestamp) override;
@@ -62,14 +63,14 @@ class TestNavigationURLLoaderDelegate : public NavigationURLLoaderDelegate {
net::RedirectInfo redirect_info_;
scoped_refptr<ResourceResponse> redirect_response_;
scoped_refptr<ResourceResponse> response_;
- scoped_ptr<StreamHandle> body_;
+ std::unique_ptr<StreamHandle> body_;
int net_error_;
int on_request_handled_counter_;
- scoped_ptr<base::RunLoop> request_redirected_;
- scoped_ptr<base::RunLoop> response_started_;
- scoped_ptr<base::RunLoop> request_failed_;
- scoped_ptr<base::RunLoop> request_started_;
+ std::unique_ptr<base::RunLoop> request_redirected_;
+ std::unique_ptr<base::RunLoop> response_started_;
+ std::unique_ptr<base::RunLoop> request_failed_;
+ std::unique_ptr<base::RunLoop> request_started_;
DISALLOW_COPY_AND_ASSIGN(TestNavigationURLLoaderDelegate);
};
« no previous file with comments | « content/renderer/mus/compositor_mus_connection_unittest.cc ('k') | content/test/test_navigation_url_loader_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698