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

Unified Diff: components/autofill/content/browser/content_autofill_driver_unittest.cc

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests some more Created 6 years, 1 month 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: components/autofill/content/browser/content_autofill_driver_unittest.cc
diff --git a/components/autofill/content/browser/content_autofill_driver_unittest.cc b/components/autofill/content/browser/content_autofill_driver_unittest.cc
index 6481cfdf93efb549814901979c1f754bf72d96a8..76fbf7c2aea552b28a83bdcfa2e9d1c6d9d69df3 100644
--- a/components/autofill/content/browser/content_autofill_driver_unittest.cc
+++ b/components/autofill/content/browser/content_autofill_driver_unittest.cc
@@ -47,9 +47,9 @@ class MockAutofillManager : public AutofillManager {
class TestContentAutofillDriver : public ContentAutofillDriver {
public:
- TestContentAutofillDriver(content::WebContents* contents,
+ TestContentAutofillDriver(content::RenderFrameHost* rfh,
AutofillClient* client)
- : ContentAutofillDriver(contents, client, kAppLocale, kDownloadState) {
+ : ContentAutofillDriver(rfh, client, kAppLocale, kDownloadState) {
scoped_ptr<AutofillManager> autofill_manager(
new MockAutofillManager(this, client));
SetAutofillManager(autofill_manager.Pass());
@@ -60,7 +60,7 @@ class TestContentAutofillDriver : public ContentAutofillDriver {
return static_cast<MockAutofillManager*>(autofill_manager());
}
- using ContentAutofillDriver::DidNavigateMainFrame;
+ using ContentAutofillDriver::DidNavigateFrame;
};
class ContentAutofillDriverTest : public content::RenderViewHostTestHarness {
@@ -69,7 +69,7 @@ class ContentAutofillDriverTest : public content::RenderViewHostTestHarness {
content::RenderViewHostTestHarness::SetUp();
test_autofill_client_.reset(new TestAutofillClient());
- driver_.reset(new TestContentAutofillDriver(web_contents(),
+ driver_.reset(new TestContentAutofillDriver(web_contents()->GetMainFrame(),
test_autofill_client_.get()));
}
@@ -210,7 +210,7 @@ TEST_F(ContentAutofillDriverTest, NavigatedToDifferentPage) {
details.is_in_page = false;
ASSERT_TRUE(details.is_navigation_to_different_page());
content::FrameNavigateParams params = content::FrameNavigateParams();
- driver_->DidNavigateMainFrame(details, params);
+ driver_->DidNavigateFrame(details, params);
}
TEST_F(ContentAutofillDriverTest, NavigatedWithinSamePage) {
@@ -219,7 +219,7 @@ TEST_F(ContentAutofillDriverTest, NavigatedWithinSamePage) {
details.is_main_frame = false;
ASSERT_TRUE(!details.is_navigation_to_different_page());
content::FrameNavigateParams params = content::FrameNavigateParams();
- driver_->DidNavigateMainFrame(details, params);
+ driver_->DidNavigateFrame(details, params);
}
TEST_F(ContentAutofillDriverTest, FormDataSentToRenderer_FillForm) {

Powered by Google App Engine
This is Rietveld 408576698