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

Unified Diff: components/autofill/content/browser/content_autofill_driver_unittest.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/content/browser/content_autofill_driver_unittest.cc
diff --git a/components/autofill/content/browser/content_autofill_driver_unittest.cc b/components/autofill/content/browser/content_autofill_driver_unittest.cc
index 68fe6f239f43e10067f2938db12802baa3058b1f..dce2817620b17308d4482716675a712844a96b9b 100644
--- a/components/autofill/content/browser/content_autofill_driver_unittest.cc
+++ b/components/autofill/content/browser/content_autofill_driver_unittest.cc
@@ -5,13 +5,14 @@
#include "components/autofill/content/browser/content_autofill_driver.h"
#include <stdint.h>
+
#include <algorithm>
+#include <memory>
#include <tuple>
#include <utility>
#include <vector>
#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/content/common/autofill_messages.h"
#include "components/autofill/core/browser/autofill_external_delegate.h"
@@ -54,7 +55,7 @@ class TestContentAutofillDriver : public ContentAutofillDriver {
TestContentAutofillDriver(content::RenderFrameHost* rfh,
AutofillClient* client)
: ContentAutofillDriver(rfh, client, kAppLocale, kDownloadState) {
- scoped_ptr<AutofillManager> autofill_manager(
+ std::unique_ptr<AutofillManager> autofill_manager(
new MockAutofillManager(this, client));
SetAutofillManager(std::move(autofill_manager));
}
@@ -195,8 +196,8 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness {
return true;
}
- scoped_ptr<TestAutofillClient> test_autofill_client_;
- scoped_ptr<TestContentAutofillDriver> driver_;
+ std::unique_ptr<TestAutofillClient> test_autofill_client_;
+ std::unique_ptr<TestContentAutofillDriver> driver_;
};
TEST_F(ContentAutofillDriverTest, GetURLRequestContext) {

Powered by Google App Engine
This is Rietveld 408576698