| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/core/common/password_form.h> |
| 5 #include "base/feature_list.h" | 6 #include "base/feature_list.h" |
| 6 #include "base/macros.h" | 7 #include "base/macros.h" |
| 7 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 8 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" | 11 #include "chrome/renderer/autofill/fake_content_password_manager_driver.h" |
| 11 #include "chrome/renderer/autofill/fake_password_manager_client.h" | 12 #include "chrome/renderer/autofill/fake_password_manager_client.h" |
| 12 #include "chrome/renderer/autofill/password_generation_test_utils.h" | 13 #include "chrome/renderer/autofill/password_generation_test_utils.h" |
| 13 #include "chrome/test/base/chrome_render_view_test.h" | 14 #include "chrome/test/base/chrome_render_view_test.h" |
| 14 #include "components/autofill/content/renderer/autofill_agent.h" | 15 #include "components/autofill/content/renderer/autofill_agent.h" |
| 15 #include "components/autofill/content/renderer/form_autofill_util.h" | 16 #include "components/autofill/content/renderer/form_autofill_util.h" |
| 16 #include "components/autofill/content/renderer/password_autofill_agent.h" | 17 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 17 #include "components/autofill/content/renderer/test_password_autofill_agent.h" | 18 #include "components/autofill/content/renderer/test_password_autofill_agent.h" |
| 18 #include "components/autofill/content/renderer/test_password_generation_agent.h" | 19 #include "components/autofill/content/renderer/test_password_generation_agent.h" |
| 19 #include "components/autofill/core/common/autofill_constants.h" | 20 #include "components/autofill/core/common/autofill_constants.h" |
| 20 #include "components/autofill/core/common/form_data.h" | 21 #include "components/autofill/core/common/form_data.h" |
| 21 #include "components/autofill/core/common/form_field_data.h" | 22 #include "components/autofill/core/common/form_field_data.h" |
| 22 #include <components/autofill/core/common/password_form.h> | |
| 23 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 23 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 24 #include "components/password_manager/core/common/password_manager_features.h" | 24 #include "components/password_manager/core/common/password_manager_features.h" |
| 25 #include "content/public/common/associated_interface_provider.h" | 25 #include "content/public/common/associated_interface_provider.h" |
| 26 #include "content/public/renderer/render_frame.h" | 26 #include "content/public/renderer/render_frame.h" |
| 27 #include "content/public/renderer/render_view.h" | 27 #include "content/public/renderer/render_view.h" |
| 28 #include "services/shell/public/cpp/interface_provider.h" | 28 #include "services/service_manager/public/cpp/interface_provider.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 #include "third_party/WebKit/public/platform/WebString.h" | 30 #include "third_party/WebKit/public/platform/WebString.h" |
| 31 #include "third_party/WebKit/public/platform/WebVector.h" | 31 #include "third_party/WebKit/public/platform/WebVector.h" |
| 32 #include "third_party/WebKit/public/web/WebDocument.h" | 32 #include "third_party/WebKit/public/web/WebDocument.h" |
| 33 #include "third_party/WebKit/public/web/WebElement.h" | 33 #include "third_party/WebKit/public/web/WebElement.h" |
| 34 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 34 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
| 35 #include "third_party/WebKit/public/web/WebFormElement.h" | 35 #include "third_party/WebKit/public/web/WebFormElement.h" |
| 36 #include "third_party/WebKit/public/web/WebInputElement.h" | 36 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 37 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 37 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 38 #include "third_party/WebKit/public/web/WebNode.h" | 38 #include "third_party/WebKit/public/web/WebNode.h" |
| (...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2462 SimulateElementClick("confirmpassword"); | 2462 SimulateElementClick("confirmpassword"); |
| 2463 EXPECT_FALSE(GetCalledShowPasswordSuggestions()); | 2463 EXPECT_FALSE(GetCalledShowPasswordSuggestions()); |
| 2464 | 2464 |
| 2465 // But when the user clicks on the autofilled password field again it should | 2465 // But when the user clicks on the autofilled password field again it should |
| 2466 // still produce a suggestion dropdown. | 2466 // still produce a suggestion dropdown. |
| 2467 SimulateElementClick("password"); | 2467 SimulateElementClick("password"); |
| 2468 CheckSuggestions("", false); | 2468 CheckSuggestions("", false); |
| 2469 } | 2469 } |
| 2470 | 2470 |
| 2471 } // namespace autofill | 2471 } // namespace autofill |
| OLD | NEW |