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

Unified Diff: chrome/renderer/autofill/form_autocomplete_browsertest.cc

Issue 2007473004: [Autofill] Migrate ContentAutofillDriver<-->AutofillAgent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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: chrome/renderer/autofill/form_autocomplete_browsertest.cc
diff --git a/chrome/renderer/autofill/form_autocomplete_browsertest.cc b/chrome/renderer/autofill/form_autocomplete_browsertest.cc
index f2401b6d60754b379d0d9d7e19c070670fed2ef2..73849b4ac2b3a67233e2b233f47a3e5b8a46c97a 100644
--- a/chrome/renderer/autofill/form_autocomplete_browsertest.cc
+++ b/chrome/renderer/autofill/form_autocomplete_browsertest.cc
@@ -4,6 +4,7 @@
#include <tuple>
+#include "base/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "build/build_config.h"
@@ -87,6 +88,8 @@ void VerifyNoSubmitMessagesReceived(content::MockRenderThread* render_thread) {
EXPECT_EQ(NULL, submitted_message);
}
+void DummyDidFillAutofillFormData(const FormData& filled, int64_t timestamp) {}
+
// Simulates receiving a message from the browser to fill a form.
void SimulateOnFillForm(content::MockRenderThread* render_thread,
autofill::AutofillAgent* autofill_agent,
@@ -119,9 +122,7 @@ void SimulateOnFillForm(content::MockRenderThread* render_thread,
field_data.is_autofilled = true;
data.fields.push_back(field_data);
- AutofillMsg_FillForm msg(0, 0, data);
- static_cast<content::RenderFrameObserver*>(autofill_agent)
- ->OnMessageReceived(msg);
+ autofill_agent->FillForm(0, data, base::Bind(&DummyDidFillAutofillFormData));
}
} // end namespace

Powered by Google App Engine
This is Rietveld 408576698