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

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

Issue 2216463002: [Autofill] Migrate ContentPasswordManagerDriver<-->Password{Autofill,Generation}Agent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit from Vaclav Created 4 years, 4 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/password_generation_test_utils.cc
diff --git a/chrome/renderer/autofill/password_generation_test_utils.cc b/chrome/renderer/autofill/password_generation_test_utils.cc
index 3b1c819bdb82f34f9c560a857be696c60248907b..d734037a4a762524537598981d3b9b981fdcf518 100644
--- a/chrome/renderer/autofill/password_generation_test_utils.cc
+++ b/chrome/renderer/autofill/password_generation_test_utils.cc
@@ -6,7 +6,7 @@
#include <vector>
-#include "components/autofill/content/common/autofill_messages.h"
+#include "base/strings/stringprintf.h"
#include "components/autofill/content/renderer/form_autofill_util.h"
#include "components/autofill/content/renderer/test_password_generation_agent.h"
#include "components/autofill/core/common/password_form_generation_data.h"
@@ -21,8 +21,7 @@ void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent,
autofill::PasswordForm form;
form.origin =
GURL(base::StringPrintf("data:text/html;charset=utf-8,%s", form_str));
- AutofillMsg_FormNotBlacklisted msg(0, form);
- static_cast<IPC::Listener*>(generation_agent)->OnMessageReceived(msg);
+ generation_agent->FormNotBlacklisted(form);
}
// Sends a message that the |form_index| form on the page is valid for
@@ -43,8 +42,7 @@ void SetAccountCreationFormsDetectedMessage(
std::vector<autofill::PasswordFormGenerationData> forms;
forms.push_back(autofill::PasswordFormGenerationData{
form_data.name, form_data.action, form_data.fields[field_index]});
- AutofillMsg_FoundFormsEligibleForGeneration msg(0, forms);
- static_cast<IPC::Listener*>(generation_agent)->OnMessageReceived(msg);
+ generation_agent->FoundFormsEligibleForGeneration(forms);
}
} // namespace autofill
« no previous file with comments | « chrome/renderer/autofill/password_generation_agent_browsertest.cc ('k') | chrome/test/base/chrome_render_view_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698