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 |