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 "base/strings/string_util.h" | 5 #include "base/strings/string_util.h" |
6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
7 #include "chrome/renderer/autofill/password_generation_test_utils.h" | 7 #include "chrome/renderer/autofill/password_generation_test_utils.h" |
8 #include "chrome/test/base/chrome_render_view_test.h" | 8 #include "chrome/test/base/chrome_render_view_test.h" |
9 #include "components/autofill/content/common/autofill_messages.h" | 9 #include "components/autofill/content/common/autofill_messages.h" |
10 #include "components/autofill/content/renderer/autofill_agent.h" | 10 #include "components/autofill/content/renderer/autofill_agent.h" |
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2021 SimulateUsernameChange("temp"); | 2021 SimulateUsernameChange("temp"); |
2022 | 2022 |
2023 // Simulate a user clicking on the password element. This should produce no | 2023 // Simulate a user clicking on the password element. This should produce no |
2024 // message. | 2024 // message. |
2025 render_thread_->sink().ClearMessages(); | 2025 render_thread_->sink().ClearMessages(); |
2026 static_cast<PageClickListener*>(autofill_agent_) | 2026 static_cast<PageClickListener*>(autofill_agent_) |
2027 ->FormControlElementClicked(password_element_, false); | 2027 ->FormControlElementClicked(password_element_, false); |
2028 EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching( | 2028 EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching( |
2029 AutofillHostMsg_ShowPasswordSuggestions::ID)); | 2029 AutofillHostMsg_ShowPasswordSuggestions::ID)); |
2030 } | 2030 } |
2031 | |
2032 } // namespace autofill | 2031 } // namespace autofill |
OLD | NEW |