| 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" |
| 7 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 10 |
| 10 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock( | 11 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock( |
| 11 content::WebContents* contents) | 12 content::WebContents* contents) |
| 12 : ManagePasswordsUIController(contents), | 13 : ManagePasswordsUIController(contents), |
| 13 navigated_to_settings_page_(false), | 14 navigated_to_settings_page_(false), |
| 14 saved_password_(false), | 15 saved_password_(false), |
| 15 never_saved_password_(false), | 16 never_saved_password_(false), |
| 16 choose_credential_(false) { | 17 choose_credential_(false) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 54 |
| 54 void ManagePasswordsUIControllerMock::SavePasswordInternal() { | 55 void ManagePasswordsUIControllerMock::SavePasswordInternal() { |
| 55 saved_password_ = true; | 56 saved_password_ = true; |
| 56 } | 57 } |
| 57 | 58 |
| 58 void ManagePasswordsUIControllerMock::NeverSavePasswordInternal() { | 59 void ManagePasswordsUIControllerMock::NeverSavePasswordInternal() { |
| 59 never_saved_password_ = true; | 60 never_saved_password_ = true; |
| 60 } | 61 } |
| 61 | 62 |
| 62 void ManagePasswordsUIControllerMock::ChooseCredential( | 63 void ManagePasswordsUIControllerMock::ChooseCredential( |
| 63 bool was_chosen, | 64 const autofill::PasswordForm& form, |
| 64 const autofill::PasswordForm& form) { | 65 password_manager::CredentialType form_type) { |
| 65 EXPECT_FALSE(choose_credential_); | 66 EXPECT_FALSE(choose_credential_); |
| 66 choose_credential_ = true; | 67 choose_credential_ = true; |
| 67 } | 68 } |
| OLD | NEW |