Lines Matching refs:form

55   // Example password form.
56 PasswordForm form;
57 form.origin = GURL("http://www.google.com/accounts/LoginAuth");
58 form.action = GURL("http://www.google.com/accounts/Login");
59 form.username_element = ASCIIToUTF16("Email");
60 form.username_value = ASCIIToUTF16("test@gmail.com");
61 form.password_element = ASCIIToUTF16("Passwd");
62 form.password_value = ASCIIToUTF16("test");
63 form.submit_element = ASCIIToUTF16("signIn");
64 form.signon_realm = "http://www.google.com/";
65 form.ssl_valid = false;
66 form.preferred = false;
67 form.scheme = PasswordForm::SCHEME_HTML;
70 EXPECT_TRUE(db.GetLoginsTable()->AddLogin(form));
77 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result));
83 PasswordForm form2(form);
127 EXPECT_TRUE(db.GetLoginsTable()->RemoveLogin(form));
133 // The old form wont match the new site (http vs https).
134 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result));
154 // old form, and there is only one record.
180 // Example password form.
181 PasswordForm form;
182 form.origin = GURL(url + std::string("/LoginAuth"));
183 form.username_element = ASCIIToUTF16(unique_string);
184 form.username_value = ASCIIToUTF16(unique_string);
185 form.password_element = ASCIIToUTF16(unique_string);
186 form.submit_element = ASCIIToUTF16("signIn");
187 form.signon_realm = url;
188 form.date_created = time;
189 return db->GetLoginsTable()->AddLogin(form);
251 // Save a form as blacklisted.
252 PasswordForm form;
253 form.origin = GURL("http://www.google.com/accounts/LoginAuth");
254 form.action = GURL("http://www.google.com/accounts/Login");
255 form.username_element = ASCIIToUTF16("Email");
256 form.password_element = ASCIIToUTF16("Passwd");
257 form.submit_element = ASCIIToUTF16("signIn");
258 form.signon_realm = "http://www.google.com/";
259 form.ssl_valid = false;
260 form.preferred = true;
261 form.blacklisted_by_user = true;
262 form.scheme = PasswordForm::SCHEME_HTML;
263 EXPECT_TRUE(db.GetLoginsTable()->AddLogin(form));
270 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result));