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

Unified Diff: chrome/renderer/password_autocomplete_manager_unittest.cc

Issue 6294016: Move AutoFill messages into a separate file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/password_autocomplete_manager_unittest.cc
===================================================================
--- chrome/renderer/password_autocomplete_manager_unittest.cc (revision 72573)
+++ chrome/renderer/password_autocomplete_manager_unittest.cc (working copy)
@@ -4,6 +4,7 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
+#include "chrome/common/autofill_messages.h"
#include "chrome/renderer/autofill_helper.h"
#include "chrome/renderer/password_autocomplete_manager.h"
#include "chrome/test/render_view_test.h"
@@ -62,7 +63,7 @@
// protected.
void SimulateOnFillPasswordForm(
const PasswordFormFillData& fill_data) {
- ViewMsg_FillPasswordForm msg(0, fill_data);
+ AutoFillMsg_FillPasswordForm msg(0, fill_data);
password_autocomplete_->OnMessageReceived(msg);
}
@@ -176,11 +177,11 @@
// The form has been loaded, we should have sent the browser a message about
// the form.
const IPC::Message* msg = render_thread_.sink().GetFirstMessageMatching(
- ViewHostMsg_PasswordFormsFound::ID);
+ AutoFillHostMsg_PasswordFormsFound::ID);
ASSERT_TRUE(msg != NULL);
Tuple1<std::vector<PasswordForm> > forms;
- ViewHostMsg_PasswordFormsFound::Read(msg, &forms);
+ AutoFillHostMsg_PasswordFormsFound::Read(msg, &forms);
ASSERT_EQ(1U, forms.a.size());
PasswordForm password_form = forms.a[0];
EXPECT_EQ(PasswordForm::SCHEME_HTML, password_form.scheme);

Powered by Google App Engine
This is Rietveld 408576698