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

Unified Diff: chrome/renderer/form_autocomplete_browsertest.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/form_autocomplete_browsertest.cc
===================================================================
--- chrome/renderer/form_autocomplete_browsertest.cc (revision 72573)
+++ chrome/renderer/form_autocomplete_browsertest.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/render_messages.h"
+#include "chrome/common/autofill_messages.h"
#include "chrome/test/render_view_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
@@ -32,11 +32,11 @@
ProcessPendingMessages();
const IPC::Message* message = render_thread_.sink().GetFirstMessageMatching(
- ViewHostMsg_FormSubmitted::ID);
+ AutoFillHostMsg_FormSubmitted::ID);
ASSERT_TRUE(message != NULL);
Tuple1<FormData> forms;
- ViewHostMsg_FormSubmitted::Read(message, &forms);
+ AutoFillHostMsg_FormSubmitted::Read(message, &forms);
ASSERT_EQ(2U, forms.a.fields.size());
webkit_glue::FormField& form_field = forms.a.fields[0];
@@ -63,7 +63,7 @@
// No FormSubmitted message should have been sent.
EXPECT_FALSE(render_thread_.sink().GetFirstMessageMatching(
- ViewHostMsg_FormSubmitted::ID));
+ AutoFillHostMsg_FormSubmitted::ID));
}
// Tests that fields with autocomplete off are not submitted.
@@ -80,11 +80,11 @@
// No FormSubmitted message should have been sent.
const IPC::Message* message = render_thread_.sink().GetFirstMessageMatching(
- ViewHostMsg_FormSubmitted::ID);
+ AutoFillHostMsg_FormSubmitted::ID);
ASSERT_TRUE(message != NULL);
Tuple1<FormData> forms;
- ViewHostMsg_FormSubmitted::Read(message, &forms);
+ AutoFillHostMsg_FormSubmitted::Read(message, &forms);
ASSERT_EQ(1U, forms.a.fields.size());
webkit_glue::FormField& form_field = forms.a.fields[0];
@@ -117,5 +117,5 @@
// No FormSubmitted message should have been sent.
EXPECT_FALSE(render_thread_.sink().GetFirstMessageMatching(
- ViewHostMsg_FormSubmitted::ID));
+ AutoFillHostMsg_FormSubmitted::ID));
}

Powered by Google App Engine
This is Rietveld 408576698