| 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 "components/autofill/content/renderer/renderer_save_password_progress_l
ogger.h" | 5 #include "components/autofill/content/renderer/renderer_save_password_progress_l
ogger.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/optional.h" | 8 #include "base/optional.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "components/autofill/content/common/autofill_driver.mojom.h" | 10 #include "components/autofill/content/common/autofill_driver.mojom.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void PasswordFormsParsed( | 43 void PasswordFormsParsed( |
| 44 const std::vector<autofill::PasswordForm>& forms) override {} | 44 const std::vector<autofill::PasswordForm>& forms) override {} |
| 45 | 45 |
| 46 void PasswordFormsRendered( | 46 void PasswordFormsRendered( |
| 47 const std::vector<autofill::PasswordForm>& visible_forms, | 47 const std::vector<autofill::PasswordForm>& visible_forms, |
| 48 bool did_stop_loading) override {} | 48 bool did_stop_loading) override {} |
| 49 | 49 |
| 50 void PasswordFormSubmitted( | 50 void PasswordFormSubmitted( |
| 51 const autofill::PasswordForm& password_form) override {} | 51 const autofill::PasswordForm& password_form) override {} |
| 52 | 52 |
| 53 void ShowManualFallbackForSaving( |
| 54 const autofill::PasswordForm& password_form) override {} |
| 55 |
| 56 void HideManualFallbackForSaving() override {} |
| 57 |
| 53 void InPageNavigation(const autofill::PasswordForm& password_form) override {} | 58 void InPageNavigation(const autofill::PasswordForm& password_form) override {} |
| 54 | 59 |
| 55 void PresaveGeneratedPassword( | 60 void PresaveGeneratedPassword( |
| 56 const autofill::PasswordForm& password_form) override {} | 61 const autofill::PasswordForm& password_form) override {} |
| 57 | 62 |
| 58 void PasswordNoLongerGenerated( | 63 void PasswordNoLongerGenerated( |
| 59 const autofill::PasswordForm& password_form) override {} | 64 const autofill::PasswordForm& password_form) override {} |
| 60 | 65 |
| 61 void ShowPasswordSuggestions(int key, | 66 void ShowPasswordSuggestions(int key, |
| 62 base::i18n::TextDirection text_direction, | 67 base::i18n::TextDirection text_direction, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 TestLogger logger(driver_ptr.get()); | 115 TestLogger logger(driver_ptr.get()); |
| 111 logger.SendLog(kTestText); | 116 logger.SendLog(kTestText); |
| 112 | 117 |
| 113 base::RunLoop().RunUntilIdle(); | 118 base::RunLoop().RunUntilIdle(); |
| 114 std::string sent_log; | 119 std::string sent_log; |
| 115 EXPECT_TRUE(fake_driver.GetLogMessage(&sent_log)); | 120 EXPECT_TRUE(fake_driver.GetLogMessage(&sent_log)); |
| 116 EXPECT_EQ(kTestText, sent_log); | 121 EXPECT_EQ(kTestText, sent_log); |
| 117 } | 122 } |
| 118 | 123 |
| 119 } // namespace autofill | 124 } // namespace autofill |
| OLD | NEW |