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 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 5 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" |
6 | 6 |
7 #include "components/password_manager/content/common/credential_manager_types.h" | |
8 #include "components/password_manager/core/browser/password_form_manager.h" | 7 #include "components/password_manager/core/browser/password_form_manager.h" |
| 8 #include "components/password_manager/core/common/credential_manager_types.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock( | 12 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock( |
13 content::WebContents* contents) | 13 content::WebContents* contents) |
14 : ManagePasswordsUIController(contents), | 14 : ManagePasswordsUIController(contents), |
15 navigated_to_settings_page_(false), | 15 navigated_to_settings_page_(false), |
16 saved_password_(false), | 16 saved_password_(false), |
17 never_saved_password_(false), | 17 never_saved_password_(false), |
18 unblacklist_site_(false), | 18 unblacklist_site_(false), |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ScopedVector<autofill::PasswordForm> best_matches) { | 93 ScopedVector<autofill::PasswordForm> best_matches) { |
94 scoped_ptr<password_manager::PasswordFormManager> test_form_manager( | 94 scoped_ptr<password_manager::PasswordFormManager> test_form_manager( |
95 new password_manager::PasswordFormManager( | 95 new password_manager::PasswordFormManager( |
96 nullptr, client, | 96 nullptr, client, |
97 base::WeakPtr<password_manager::PasswordManagerDriver>(), | 97 base::WeakPtr<password_manager::PasswordManagerDriver>(), |
98 observed_form, true)); | 98 observed_form, true)); |
99 test_form_manager->SimulateFetchMatchingLoginsFromPasswordStore(); | 99 test_form_manager->SimulateFetchMatchingLoginsFromPasswordStore(); |
100 test_form_manager->OnGetPasswordStoreResults(best_matches.Pass()); | 100 test_form_manager->OnGetPasswordStoreResults(best_matches.Pass()); |
101 return test_form_manager.Pass(); | 101 return test_form_manager.Pass(); |
102 } | 102 } |
OLD | NEW |