Lines Matching refs:form
142 void AddSeenForm(FormStructure* form) { in AddSeenForm() argument
143 form_structures()->push_back(form); in AddSeenForm()
154 explicit TestFormStructure(const FormData& form) : FormStructure(form) {} in TestFormStructure() argument
214 FormData form; in TEST_F() local
215 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
216 form.method = ASCIIToUTF16("POST"); in TEST_F()
217 form.origin = GURL("http://example.com/form.html"); in TEST_F()
218 form.action = GURL("http://example.com/submit.html"); in TEST_F()
219 form.user_submitted = true; in TEST_F()
227 form.fields.push_back(field); in TEST_F()
233 form.fields.push_back(field); in TEST_F()
239 form.fields.push_back(field); in TEST_F()
245 form.fields.push_back(field); in TEST_F()
251 form.fields.push_back(field); in TEST_F()
258 form.fields.push_back(field); in TEST_F()
264 TestFormStructure* form_structure = new TestFormStructure(form); in TEST_F()
338 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
344 FormData form; in TEST_F() local
345 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
346 form.method = ASCIIToUTF16("POST"); in TEST_F()
347 form.origin = GURL("http://example.com/form.html"); in TEST_F()
348 form.action = GURL("http://example.com/submit.html"); in TEST_F()
349 form.user_submitted = true; in TEST_F()
422 form.fields.push_back(field); in TEST_F()
430 TestFormStructure* form_structure = new TestFormStructure(form); in TEST_F()
449 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
456 FormData form; in TEST_F() local
457 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
458 form.method = ASCIIToUTF16("POST"); in TEST_F()
459 form.origin = GURL("http://example.com/form.html"); in TEST_F()
460 form.action = GURL("http://example.com/submit.html"); in TEST_F()
461 form.user_submitted = true; in TEST_F()
469 form.fields.push_back(field); in TEST_F()
474 form.fields.push_back(field); in TEST_F()
479 form.fields.push_back(field); in TEST_F()
484 form.fields.push_back(field); in TEST_F()
490 TestFormStructure* form_structure = new TestFormStructure(form); in TEST_F()
495 std::vector<FormField> cached_fields = form.fields; in TEST_F()
496 form.fields.clear(); in TEST_F()
499 form.fields.push_back(field); in TEST_F()
500 form.fields.push_back(cached_fields[2]); in TEST_F()
501 form.fields.push_back(cached_fields[1]); in TEST_F()
502 form.fields.push_back(cached_fields[3]); in TEST_F()
503 form.fields.push_back(cached_fields[0]); in TEST_F()
586 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
592 FormData form; in TEST_F() local
593 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
594 form.method = ASCIIToUTF16("POST"); in TEST_F()
595 form.origin = GURL("http://example.com/form.html"); in TEST_F()
596 form.action = GURL("http://example.com/submit.html"); in TEST_F()
597 form.user_submitted = true; in TEST_F()
603 form.fields.push_back(field); in TEST_F()
606 form.fields.push_back(field); in TEST_F()
611 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
614 form.action = GURL("http://example.com/search?q=Elvis%20Presley"); in TEST_F()
617 form.fields.push_back(field); in TEST_F()
622 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
628 FormData form; in TEST_F() local
629 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
630 form.method = ASCIIToUTF16("POST"); in TEST_F()
631 form.origin = GURL("http://example.com/form.html"); in TEST_F()
632 form.action = GURL("http://example.com/submit.html"); in TEST_F()
633 form.user_submitted = true; in TEST_F()
641 form.fields.push_back(field); in TEST_F()
647 form.fields.push_back(field); in TEST_F()
653 form.fields.push_back(field); in TEST_F()
659 form.fields.push_back(field); in TEST_F()
665 form.fields.push_back(field); in TEST_F()
673 TestFormStructure* form_structure = new TestFormStructure(form); in TEST_F()
734 EXPECT_NO_FATAL_FAILURE(autofill_manager_->OnFormSubmitted(form)); in TEST_F()
766 FormData form; in TEST_F() local
767 form.name = ASCIIToUTF16("TestForm"); in TEST_F()
768 form.method = ASCIIToUTF16("POST"); in TEST_F()
769 form.origin = GURL("http://example.com/form.html"); in TEST_F()
770 form.action = GURL("http://example.com/submit.html"); in TEST_F()
771 form.user_submitted = true; in TEST_F()
776 form.fields.push_back(field); in TEST_F()
779 form.fields.push_back(field); in TEST_F()
782 form.fields.push_back(field); in TEST_F()
787 TestFormStructure* form_structure = new TestFormStructure(form); in TEST_F()
798 autofill_manager_->OnQueryFormFieldAutofill(0, form, field); in TEST_F()
803 autofill_manager_->OnQueryFormFieldAutofill(0, form, field); in TEST_F()
807 form_structure = new TestFormStructure(form); in TEST_F()
816 autofill_manager_->OnQueryFormFieldAutofill(0, form, field); in TEST_F()
820 form_structure = new TestFormStructure(form); in TEST_F()
829 form.fields[0].is_autofilled = true; in TEST_F()
830 autofill_manager_->OnQueryFormFieldAutofill(0, form, field); in TEST_F()