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

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

Issue 509553002: Remove implicit conversions from scoped_refptr to T* in components/password_manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « components/password_manager/core/browser/password_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/password_syncable_service_unittest.cc
diff --git a/components/password_manager/core/browser/password_syncable_service_unittest.cc b/components/password_manager/core/browser/password_syncable_service_unittest.cc
index 684cfdcc53b40a890f9f36ee62caa99d2dcaa382..6f0fa3a832c7f347b14d25a024c83d95850b99e9 100644
--- a/components/password_manager/core/browser/password_syncable_service_unittest.cc
+++ b/components/password_manager/core/browser/password_syncable_service_unittest.cc
@@ -311,9 +311,7 @@ class PasswordSyncableServiceWrapper {
password_store_->Shutdown();
}
- MockPasswordStore* password_store() {
- return password_store_;
- }
+ MockPasswordStore* password_store() { return password_store_.get(); }
MockPasswordSyncableService* service() {
return service_.get();
@@ -337,10 +335,10 @@ class PasswordSyncableServiceWrapper {
void SetPasswordStoreData(
const std::vector<autofill::PasswordForm*>& forms,
const std::vector<autofill::PasswordForm*>& blacklist_forms) {
- EXPECT_CALL(*password_store_, FillAutofillableLogins(_))
+ EXPECT_CALL(*password_store_.get(), FillAutofillableLogins(_))
.WillOnce(Invoke(AppendVector(forms)))
.RetiresOnSaturation();
- EXPECT_CALL(*password_store_, FillBlacklistLogins(_))
+ EXPECT_CALL(*password_store_.get(), FillBlacklistLogins(_))
.WillOnce(Invoke(AppendVector(blacklist_forms)))
.RetiresOnSaturation();
}
« no previous file with comments | « components/password_manager/core/browser/password_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698