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

Unified Diff: chrome/renderer/autofill/password_autofill_manager_browsertest.cc

Issue 7576001: Refactor webkit_glue::FormField to remove hacky methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright header Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/autofill/password_autofill_manager_browsertest.cc
diff --git a/chrome/renderer/autofill/password_autofill_manager_unittest.cc b/chrome/renderer/autofill/password_autofill_manager_browsertest.cc
similarity index 97%
rename from chrome/renderer/autofill/password_autofill_manager_unittest.cc
rename to chrome/renderer/autofill/password_autofill_manager_browsertest.cc
index b2c5d3a3808ada3249708abfb79da69505b2adb0..86e258b1f698e40e5f8758aa80aeefeb68b1adeb 100644
--- a/chrome/renderer/autofill/password_autofill_manager_unittest.cc
+++ b/chrome/renderer/autofill/password_autofill_manager_browsertest.cc
@@ -80,12 +80,16 @@ class PasswordAutofillManagerTest : public RenderViewTest {
username3_ = ASCIIToUTF16(kCarolUsername);
password3_ = ASCIIToUTF16(kCarolPassword);
- fill_data_.basic_data.fields.push_back(
- FormField(string16(), ASCIIToUTF16(kUsernameName),
- username1_, string16(), 0, false));
- fill_data_.basic_data.fields.push_back(
- FormField(string16(), ASCIIToUTF16(kPasswordName),
- password1_, string16(), 0, false));
+ FormField username_field;
+ username_field.name = ASCIIToUTF16(kUsernameName);
+ username_field.value = username1_;
+ fill_data_.basic_data.fields.push_back(username_field);
+
+ FormField password_field;
+ password_field.name = ASCIIToUTF16(kPasswordName);
+ password_field.value = password1_;
+ fill_data_.basic_data.fields.push_back(password_field);
+
fill_data_.additional_logins[username2_] = password2_;
fill_data_.additional_logins[username3_] = password3_;
« no previous file with comments | « chrome/renderer/autofill/form_manager_browsertest.cc ('k') | chrome/renderer/autofill/password_autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698