| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 bool updated_password() const { return updated_password_; } | 49 bool updated_password() const { return updated_password_; } |
| 50 | 50 |
| 51 void NeverSavePassword() override; | 51 void NeverSavePassword() override; |
| 52 bool never_saved_password() const { return never_saved_password_; } | 52 bool never_saved_password() const { return never_saved_password_; } |
| 53 | 53 |
| 54 void ChooseCredential(const autofill::PasswordForm& form, | 54 void ChooseCredential(const autofill::PasswordForm& form, |
| 55 password_manager::CredentialType form_type) override; | 55 password_manager::CredentialType form_type) override; |
| 56 bool choose_credential() const { return choose_credential_; } | 56 bool choose_credential() const { return choose_credential_; } |
| 57 autofill::PasswordForm chosen_credential() { return chosen_credential_; } | 57 autofill::PasswordForm chosen_credential() { return chosen_credential_; } |
| 58 | 58 |
| 59 const autofill::PasswordForm& PendingPassword() const override; | 59 const autofill::PasswordForm& GetPendingPassword() const override; |
| 60 void SetPendingPassword(autofill::PasswordForm pending_password); | 60 void SetPendingPassword(autofill::PasswordForm pending_password); |
| 61 | 61 |
| 62 password_manager::ui::State state() const override; | 62 password_manager::ui::State GetState() const override; |
| 63 void SetState(password_manager::ui::State state); | 63 void SetState(password_manager::ui::State state); |
| 64 void UnsetState(); | 64 void UnsetState(); |
| 65 | 65 |
| 66 void UpdateBubbleAndIconVisibility() override; | 66 void UpdateBubbleAndIconVisibility() override; |
| 67 | 67 |
| 68 void UpdateAndroidAccountChooserInfoBarVisibility() override; | 68 void UpdateAndroidAccountChooserInfoBarVisibility() override; |
| 69 | 69 |
| 70 // Simulate the pending password state. |best_matches| can't be empty. | 70 // Simulate the pending password state. |best_matches| can't be empty. |
| 71 void PretendSubmittedPassword( | 71 void PretendSubmittedPassword( |
| 72 ScopedVector<autofill::PasswordForm> best_matches); | 72 ScopedVector<autofill::PasswordForm> best_matches); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 90 autofill::PasswordForm pending_password_; | 90 autofill::PasswordForm pending_password_; |
| 91 | 91 |
| 92 scoped_ptr<password_manager::PasswordManagerClient> client_; | 92 scoped_ptr<password_manager::PasswordManagerClient> client_; |
| 93 scoped_ptr<password_manager::PasswordManagerDriver> driver_; | 93 scoped_ptr<password_manager::PasswordManagerDriver> driver_; |
| 94 scoped_ptr<password_manager::PasswordManager> password_manager_; | 94 scoped_ptr<password_manager::PasswordManager> password_manager_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock); | 96 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ | 99 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ |
| OLD | NEW |