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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc

Issue 1846623002: Remove password-manager-reauthentication flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased 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: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
diff --git a/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
index e8a82078f5262e6d872948d1874f9405ebc8d778..799c1592d56c593f578a93ffcc1bbf9a6a26ca64 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
@@ -36,9 +36,8 @@ class MockPasswordUIView : public PasswordUIView {
#endif
MOCK_METHOD4(ShowPassword, void(
size_t, const std::string&, const std::string&, const base::string16&));
- MOCK_METHOD2(SetPasswordList,
- void(const std::vector<scoped_ptr<autofill::PasswordForm>>&,
- bool));
+ MOCK_METHOD1(SetPasswordList,
+ void(const std::vector<scoped_ptr<autofill::PasswordForm>>&));
MOCK_METHOD1(SetPasswordExceptionList,
void(const std::vector<scoped_ptr<autofill::PasswordForm>>&));
PasswordManagerPresenter* GetPasswordManagerPresenter() {
@@ -115,10 +114,8 @@ namespace {
TEST_F(PasswordManagerPresenterTest, UIControllerIsCalled) {
EXPECT_CALL(
*GetUIController(),
- SetPasswordList(
- Property(&std::vector<scoped_ptr<autofill::PasswordForm>>::size,
- Eq(0u)),
- testing::_));
+ SetPasswordList(Property(
+ &std::vector<scoped_ptr<autofill::PasswordForm>>::size, Eq(0u))));
EXPECT_CALL(
*GetUIController(),
SetPasswordExceptionList(Property(
@@ -128,10 +125,8 @@ TEST_F(PasswordManagerPresenterTest, UIControllerIsCalled) {
AddPasswordEntry(pass_origin, "test@gmail.com", "test");
EXPECT_CALL(
*GetUIController(),
- SetPasswordList(
- Property(&std::vector<scoped_ptr<autofill::PasswordForm>>::size,
- Eq(1u)),
- testing::_));
+ SetPasswordList(Property(
+ &std::vector<scoped_ptr<autofill::PasswordForm>>::size, Eq(1u))));
EXPECT_CALL(
*GetUIController(),
SetPasswordExceptionList(Property(
@@ -141,10 +136,8 @@ TEST_F(PasswordManagerPresenterTest, UIControllerIsCalled) {
AddPasswordException(except_origin);
EXPECT_CALL(
*GetUIController(),
- SetPasswordList(
- Property(&std::vector<scoped_ptr<autofill::PasswordForm>>::size,
- Eq(1u)),
- testing::_));
+ SetPasswordList(Property(
+ &std::vector<scoped_ptr<autofill::PasswordForm>>::size, Eq(1u))));
EXPECT_CALL(
*GetUIController(),
SetPasswordExceptionList(Property(
@@ -154,10 +147,8 @@ TEST_F(PasswordManagerPresenterTest, UIControllerIsCalled) {
AddPasswordEntry(pass_origin2, "test@gmail.com", "test");
EXPECT_CALL(
*GetUIController(),
- SetPasswordList(
- Property(&std::vector<scoped_ptr<autofill::PasswordForm>>::size,
- Eq(2u)),
- testing::_));
+ SetPasswordList(Property(
+ &std::vector<scoped_ptr<autofill::PasswordForm>>::size, Eq(2u))));
EXPECT_CALL(
*GetUIController(),
SetPasswordExceptionList(Property(

Powered by Google App Engine
This is Rietveld 408576698