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

Unified Diff: components/password_manager/core/browser/password_store_origin_unittest.h

Issue 1852093002: components/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and revert an accidental .proto change Created 4 years, 9 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/password_manager/core/browser/password_store_origin_unittest.h
diff --git a/components/password_manager/core/browser/password_store_origin_unittest.h b/components/password_manager/core/browser/password_store_origin_unittest.h
index 3686f225b8acf129c31de7f1abe66f9d63c1cd64..e8ff255d063e30c5fc5500145f2a78bf75be34fd 100644
--- a/components/password_manager/core/browser/password_store_origin_unittest.h
+++ b/components/password_manager/core/browser/password_store_origin_unittest.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_ORIGIN_UNITTEST_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_ORIGIN_UNITTEST_H_
+#include <memory>
+
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
@@ -63,7 +64,7 @@ TYPED_TEST_CASE_P(PasswordStoreOriginTest);
TYPED_TEST_P(PasswordStoreOriginTest,
RemoveLoginsByURLAndTimeImpl_AllFittingOriginAndTime) {
const char origin_url[] = "http://foo.example.com/";
- scoped_ptr<PasswordForm> form = CreatePasswordFormFromDataForTesting(
+ std::unique_ptr<PasswordForm> form = CreatePasswordFormFromDataForTesting(
CreateTestPasswordFormDataByOrigin(origin_url));
this->delegate_.store()->AddLogin(*form);
this->delegate_.FinishAsyncProcessing();
@@ -86,7 +87,7 @@ TYPED_TEST_P(PasswordStoreOriginTest,
TYPED_TEST_P(PasswordStoreOriginTest,
RemoveLoginsByURLAndTimeImpl_SomeFittingOriginAndTime) {
const char fitting_url[] = "http://foo.example.com/";
- scoped_ptr<PasswordForm> form = CreatePasswordFormFromDataForTesting(
+ std::unique_ptr<PasswordForm> form = CreatePasswordFormFromDataForTesting(
CreateTestPasswordFormDataByOrigin(fitting_url));
this->delegate_.store()->AddLogin(*form);
@@ -115,7 +116,7 @@ TYPED_TEST_P(PasswordStoreOriginTest,
TYPED_TEST_P(PasswordStoreOriginTest,
RemoveLoginsByURLAndTimeImpl_NonMatchingOrigin) {
const char origin_url[] = "http://foo.example.com/";
- scoped_ptr<autofill::PasswordForm> form =
+ std::unique_ptr<autofill::PasswordForm> form =
CreatePasswordFormFromDataForTesting(
CreateTestPasswordFormDataByOrigin(origin_url));
this->delegate_.store()->AddLogin(*form);
@@ -139,7 +140,7 @@ TYPED_TEST_P(PasswordStoreOriginTest,
TYPED_TEST_P(PasswordStoreOriginTest,
RemoveLoginsByURLAndTimeImpl_NotWithinTimeInterval) {
const char origin_url[] = "http://foo.example.com/";
- scoped_ptr<autofill::PasswordForm> form =
+ std::unique_ptr<autofill::PasswordForm> form =
CreatePasswordFormFromDataForTesting(
CreateTestPasswordFormDataByOrigin(origin_url));
this->delegate_.store()->AddLogin(*form);

Powered by Google App Engine
This is Rietveld 408576698