Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
| index 3b0f010ffb8522e177ec71cabfc88f2e901bc7ba..71269169ddbaae9a13d509640faae103710bc213 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc |
| @@ -523,7 +523,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, Submit) { |
| AddAutofillProfileToProfile(controller()->profile(), |
| test::GetVerifiedProfile()); |
| scoped_ptr<AutofillDialogViewTester> view = AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller())->view()); |
| + static_cast<AutofillDialogControllerImpl*>(controller())->view()); |
|
Evan Stade
2015/12/11 23:17:40
you can just remove this cast
krasin
2015/12/11 23:23:50
Done.
|
| view->SetTextContentsOfSuggestionInput(SECTION_CC, ASCIIToUTF16("123")); |
| GetViewTester()->SubmitForTesting(); |
| RunMessageLoop(); |
| @@ -887,7 +887,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, AutocompleteEvent) { |
| scoped_ptr<AutofillDialogViewTester> view = |
| AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller)->view()); |
| + static_cast<AutofillDialogControllerImpl*>(controller)->view()); |
|
Evan Stade
2015/12/11 23:17:40
you don't need this cast
krasin
2015/12/11 23:23:50
Done.
|
| view->SetTextContentsOfSuggestionInput(SECTION_CC, ASCIIToUTF16("123")); |
| view->SubmitForTesting(); |
| ExpectDomMessage("success"); |
| @@ -909,7 +909,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
| scoped_ptr<AutofillDialogViewTester> view = |
| AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller)->view()); |
| + static_cast<AutofillDialogControllerImpl*>(controller)->view()); |
|
Evan Stade
2015/12/11 23:17:40
ditto
krasin
2015/12/11 23:23:50
Done.
|
| view->SetTextContentsOfSuggestionInput(SECTION_CC, ASCIIToUTF16("123")); |
| view->SubmitForTesting(); |
| ExpectDomMessage("error: invalid"); |
| @@ -933,7 +933,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
| SetUpHtmlAndInvoke("<input autocomplete='cc-name'>"); |
| ASSERT_TRUE(controller); |
| AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller)->view())-> |
| + static_cast<AutofillDialogControllerImpl*>(controller)->view())-> |
| CancelForTesting(); |
| ExpectDomMessage("error: cancel"); |
| } |
| @@ -957,7 +957,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
| ExpectDomMessage("iframe loaded"); |
| AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller)->view())-> |
| + static_cast<AutofillDialogControllerImpl*>(controller)->view())-> |
| CancelForTesting(); |
| ExpectDomMessage("error: cancel"); |
| } |
| @@ -986,7 +986,7 @@ IN_PROC_BROWSER_TEST_F(AutofillDialogControllerTest, |
| scoped_ptr<AutofillDialogViewTester> view = |
| AutofillDialogViewTester::For( |
| - static_cast<TestAutofillDialogController*>(controller)->view()); |
| + static_cast<AutofillDialogControllerImpl*>(controller)->view()); |
| view->SetTextContentsOfSuggestionInput(SECTION_CC, ASCIIToUTF16("123")); |
| view->SubmitForTesting(); |
| ExpectDomMessage("success"); |