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

Unified Diff: components/autofill/content/browser/request_autocomplete_manager_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: mem leak Created 6 years 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/request_autocomplete_manager_unittest.cc
diff --git a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
index c2de017c4228e3d2b7c38e347e379c1022c84eeb..193411d3b17d61cbfb1cb7f12650417a867a1c55 100644
--- a/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
+++ b/components/autofill/content/browser/request_autocomplete_manager_unittest.cc
@@ -6,6 +6,7 @@
#include "components/autofill/content/browser/request_autocomplete_manager.h"
#include "components/autofill/content/common/autofill_messages.h"
#include "components/autofill/core/browser/test_autofill_client.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -71,9 +72,9 @@ class CustomTestAutofillClient : public TestAutofillClient {
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) {
SetAutofillManager(make_scoped_ptr<AutofillManager>(
new TestAutofillManager(this, client)));
}
@@ -83,8 +84,6 @@ class TestContentAutofillDriver : public ContentAutofillDriver {
return static_cast<TestAutofillManager*>(autofill_manager());
}
- using ContentAutofillDriver::DidNavigateMainFrame;
-
DISALLOW_COPY_AND_ASSIGN(TestContentAutofillDriver);
};
@@ -98,8 +97,8 @@ class RequestAutocompleteManagerTest :
void SetUp() override {
content::RenderViewHostTestHarness::SetUp();
- driver_.reset(
- new TestContentAutofillDriver(web_contents(), &autofill_client_));
+ driver_.reset(new TestContentAutofillDriver(web_contents()->GetMainFrame(),
+ &autofill_client_));
request_autocomplete_manager_.reset(
new RequestAutocompleteManager(driver_.get()));
}

Powered by Google App Engine
This is Rietveld 408576698