Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: chrome/renderer/autofill/password_autofill_agent_browsertest.cc

Issue 1161023008: Suggest to fill password change forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698