| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/renderer/autofill/fake_content_password_manager_driver.h" | 5 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} | 9 FakeContentPasswordManagerDriver::FakeContentPasswordManagerDriver() {} |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const base::string16& generation_field) { | 91 const base::string16& generation_field) { |
| 92 called_save_generation_field_ = true; | 92 called_save_generation_field_ = true; |
| 93 save_generation_field_ = generation_field; | 93 save_generation_field_ = generation_field; |
| 94 } | 94 } |
| 95 | 95 |
| 96 void FakeContentPasswordManagerDriver::CheckSafeBrowsingReputation( | 96 void FakeContentPasswordManagerDriver::CheckSafeBrowsingReputation( |
| 97 const GURL& form_action, | 97 const GURL& form_action, |
| 98 const GURL& frame_url) { | 98 const GURL& frame_url) { |
| 99 called_check_safe_browsing_reputation_cnt_++; | 99 called_check_safe_browsing_reputation_cnt_++; |
| 100 } | 100 } |
| 101 |
| 102 void FakeContentPasswordManagerDriver::ShowManualFallbackForSaving( |
| 103 const autofill::PasswordForm& password_form) { |
| 104 called_show_manual_fallback_for_saving_count_++; |
| 105 } |
| 106 |
| 107 void FakeContentPasswordManagerDriver::HideManualFallbackForSaving() { |
| 108 called_show_manual_fallback_for_saving_count_ = 0; |
| 109 } |
| OLD | NEW |