| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bool updated_password() const { return updated_password_; } | 52 bool updated_password() const { return updated_password_; } |
| 53 | 53 |
| 54 void NeverSavePassword() override; | 54 void NeverSavePassword() override; |
| 55 bool never_saved_password() const { return never_saved_password_; } | 55 bool never_saved_password() const { return never_saved_password_; } |
| 56 | 56 |
| 57 void ChooseCredential(const autofill::PasswordForm& form, | 57 void ChooseCredential(const autofill::PasswordForm& form, |
| 58 password_manager::CredentialType form_type) override; | 58 password_manager::CredentialType form_type) override; |
| 59 bool choose_credential() const { return choose_credential_; } | 59 bool choose_credential() const { return choose_credential_; } |
| 60 autofill::PasswordForm chosen_credential() { return chosen_credential_; } | 60 autofill::PasswordForm chosen_credential() { return chosen_credential_; } |
| 61 | 61 |
| 62 const autofill::PasswordForm& PendingPassword() const override; | 62 const autofill::PasswordForm& GetPendingPassword() const override; |
| 63 void SetPendingPassword(autofill::PasswordForm pending_password); | 63 void SetPendingPassword(autofill::PasswordForm pending_password); |
| 64 | 64 |
| 65 password_manager::ui::State state() const override; | 65 password_manager::ui::State GetState() const override; |
| 66 void SetState(password_manager::ui::State state); | 66 void SetState(password_manager::ui::State state); |
| 67 void UnsetState(); | 67 void UnsetState(); |
| 68 | 68 |
| 69 void UpdateBubbleAndIconVisibility() override; | 69 void UpdateBubbleAndIconVisibility() override; |
| 70 | 70 |
| 71 void UpdateAndroidAccountChooserInfoBarVisibility() override; | 71 void UpdateAndroidAccountChooserInfoBarVisibility() override; |
| 72 | 72 |
| 73 void OnBubbleHidden() override; | 73 void OnBubbleHidden() override; |
| 74 | 74 |
| 75 password_manager::InteractionsStats* GetCurrentInteractionStats() | 75 password_manager::InteractionsStats* GetCurrentInteractionStats() |
| (...skipping 22 matching lines...) Expand all Loading... |
| 98 autofill::PasswordForm pending_password_; | 98 autofill::PasswordForm pending_password_; |
| 99 | 99 |
| 100 password_manager::StubPasswordManagerClient client_; | 100 password_manager::StubPasswordManagerClient client_; |
| 101 password_manager::StubPasswordManagerDriver driver_; | 101 password_manager::StubPasswordManagerDriver driver_; |
| 102 password_manager::PasswordManager password_manager_; | 102 password_manager::PasswordManager password_manager_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock); | 104 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ | 107 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ |
| OLD | NEW |