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

Unified Diff: components/password_manager/core/browser/affiliated_match_helper_unittest.cc

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/affiliated_match_helper_unittest.cc
diff --git a/components/password_manager/core/browser/affiliated_match_helper_unittest.cc b/components/password_manager/core/browser/affiliated_match_helper_unittest.cc
index e9d8b0e57e2d2ca722201fb095d7eb511a698f3d..68bdefb1dfbac0c56af43b8d499b1d0ef04d5d35 100644
--- a/components/password_manager/core/browser/affiliated_match_helper_unittest.cc
+++ b/components/password_manager/core/browser/affiliated_match_helper_unittest.cc
@@ -5,11 +5,12 @@
#include "components/password_manager/core/browser/affiliated_match_helper.h"
#include <stddef.h>
+
+#include <memory>
#include <utility>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
@@ -319,7 +320,8 @@ class AffiliatedMatchHelperTest : public testing::Test {
// testing::Test:
void SetUp() override {
- scoped_ptr<MockAffiliationService> service(new MockAffiliationService());
+ std::unique_ptr<MockAffiliationService> service(
+ new MockAffiliationService());
mock_affiliation_service_ = service.get();
password_store_ = new TestPasswordStore;
@@ -342,7 +344,7 @@ class AffiliatedMatchHelperTest : public testing::Test {
bool expecting_result_callback_;
scoped_refptr<TestPasswordStore> password_store_;
- scoped_ptr<AffiliatedMatchHelper> match_helper_;
+ std::unique_ptr<AffiliatedMatchHelper> match_helper_;
// Owned by |match_helper_|.
MockAffiliationService* mock_affiliation_service_;

Powered by Google App Engine
This is Rietveld 408576698