Commit 6254bbbb authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in components/password_manager

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/509553002

Cr-Commit-Position: refs/heads/master@{#291936}
parent dbcee380
......@@ -141,14 +141,14 @@ class PasswordFormManagerTest : public testing::Test {
}
virtual void TearDown() {
if (mock_store_)
if (mock_store_.get())
mock_store_->Shutdown();
}
void InitializeMockStore() {
if (!mock_store_) {
if (!mock_store_.get()) {
mock_store_ = new MockPasswordStore();
ASSERT_TRUE(mock_store_);
ASSERT_TRUE(mock_store_.get());
}
}
......
......@@ -93,7 +93,7 @@ class PasswordManagerTest : public testing::Test {
true);
store_ = new MockPasswordStore;
EXPECT_CALL(*store_, ReportMetrics(_)).Times(AnyNumber());
EXPECT_CALL(*store_.get(), ReportMetrics(_)).Times(AnyNumber());
CHECK(store_->Init(syncer::SyncableService::StartSyncFlare(), ""));
EXPECT_CALL(client_, IsPasswordManagerEnabledForCurrentPage())
......
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment