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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const base::string16& generation_field) { | 85 const base::string16& generation_field) { |
86 called_save_generation_field_ = true; | 86 called_save_generation_field_ = true; |
87 save_generation_field_ = generation_field; | 87 save_generation_field_ = generation_field; |
88 } | 88 } |
89 | 89 |
90 void FakeContentPasswordManagerDriver::CheckSafeBrowsingReputation( | 90 void FakeContentPasswordManagerDriver::CheckSafeBrowsingReputation( |
91 const GURL& form_action, | 91 const GURL& form_action, |
92 const GURL& frame_url) { | 92 const GURL& frame_url) { |
93 called_check_safe_browsing_reputation_cnt_++; | 93 called_check_safe_browsing_reputation_cnt_++; |
94 } | 94 } |
| 95 |
| 96 void FakeContentPasswordManagerDriver::ShowManualFallback( |
| 97 const autofill::PasswordForm& password_form) { |
| 98 called_show_manual_fallback_cnt_++; |
| 99 } |
| 100 |
| 101 void FakeContentPasswordManagerDriver::HideManualFallback() { |
| 102 called_show_manual_fallback_cnt_ = 0; |
| 103 } |
OLD | NEW |