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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h

Issue 1151373006: Update Confirmation UI for saved password change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
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 "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
10 #include "components/password_manager/core/browser/stub_password_manager_client. h" 10 #include "components/password_manager/core/browser/stub_password_manager_client. h"
(...skipping 24 matching lines...) Expand all
35 // TODO(mkwst): Determine how to reasonably test this on that platform. 35 // TODO(mkwst): Determine how to reasonably test this on that platform.
36 void NavigateToPasswordManagerSettingsPage() override; 36 void NavigateToPasswordManagerSettingsPage() override;
37 bool navigated_to_settings_page() const { 37 bool navigated_to_settings_page() const {
38 return navigated_to_settings_page_; 38 return navigated_to_settings_page_;
39 } 39 }
40 40
41 // We don't have a FormManager in tests, so stub these out. 41 // We don't have a FormManager in tests, so stub these out.
42 void SavePassword() override; 42 void SavePassword() override;
43 bool saved_password() const { return saved_password_; } 43 bool saved_password() const { return saved_password_; }
44 44
45 void UpdatePassword(const autofill::PasswordForm& password_form) override;
46 bool updated_password() const { return updated_password_; }
47
45 void NeverSavePassword() override; 48 void NeverSavePassword() override;
46 bool never_saved_password() const { return never_saved_password_; } 49 bool never_saved_password() const { return never_saved_password_; }
47 50
48 void UnblacklistSite() override; 51 void UnblacklistSite() override;
49 bool unblacklist_site() const { return unblacklist_site_; } 52 bool unblacklist_site() const { return unblacklist_site_; }
50 53
51 void ChooseCredential(const autofill::PasswordForm& form, 54 void ChooseCredential(const autofill::PasswordForm& form,
52 password_manager::CredentialType form_type) override; 55 password_manager::CredentialType form_type) override;
53 bool choose_credential() const { return choose_credential_; } 56 bool choose_credential() const { return choose_credential_; }
54 autofill::PasswordForm chosen_credential() { return chosen_credential_; } 57 autofill::PasswordForm chosen_credential() { return chosen_credential_; }
(...skipping 13 matching lines...) Expand all
68 ScopedVector<autofill::PasswordForm> best_matches); 71 ScopedVector<autofill::PasswordForm> best_matches);
69 72
70 static scoped_ptr<password_manager::PasswordFormManager> CreateFormManager( 73 static scoped_ptr<password_manager::PasswordFormManager> CreateFormManager(
71 password_manager::PasswordManagerClient* client, 74 password_manager::PasswordManagerClient* client,
72 const autofill::PasswordForm& observed_form, 75 const autofill::PasswordForm& observed_form,
73 ScopedVector<autofill::PasswordForm> best_matches); 76 ScopedVector<autofill::PasswordForm> best_matches);
74 77
75 private: 78 private:
76 bool navigated_to_settings_page_; 79 bool navigated_to_settings_page_;
77 bool saved_password_; 80 bool saved_password_;
81 bool updated_password_;
78 bool never_saved_password_; 82 bool never_saved_password_;
79 bool unblacklist_site_; 83 bool unblacklist_site_;
80 bool choose_credential_; 84 bool choose_credential_;
81 bool manage_accounts_; 85 bool manage_accounts_;
82 base::TimeDelta elapsed_; 86 base::TimeDelta elapsed_;
83 87
84 autofill::PasswordForm chosen_credential_; 88 autofill::PasswordForm chosen_credential_;
85 autofill::PasswordForm pending_password_; 89 autofill::PasswordForm pending_password_;
86 90
87 password_manager::StubPasswordManagerClient client_; 91 password_manager::StubPasswordManagerClient client_;
88 92
89 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock); 93 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsUIControllerMock);
90 }; 94 };
91 95
92 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_ 96 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_UI_CONTROLLER_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698