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

Unified Diff: chrome/browser/autofill/autofill_manager_unittest.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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/browser/autofill/autofill_manager_unittest.cc
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index ec249f551ce53bed5498d1afdf0ba2860a90df70..5f27590dc6b9e488efaedfa5999ca408e85b75c2 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -32,6 +32,8 @@
#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
#include "chrome/common/autofill_messages.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/form_data.h"
+#include "chrome/common/form_field.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/web_contents.h"
@@ -45,14 +47,12 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebAutofillClient.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/rect.h"
-#include "webkit/forms/form_data.h"
-#include "webkit/forms/form_field.h"
+using chrome::FormData;
+using chrome::FormField;
using content::BrowserThread;
using content::WebContents;
using testing::_;
-using webkit::forms::FormData;
-using webkit::forms::FormField;
namespace {
@@ -301,7 +301,7 @@ void ExpectFilledField(const char* expected_label,
const char* expected_name,
const char* expected_value,
const char* expected_form_control_type,
- const webkit::forms::FormField& field) {
+ const chrome::FormField& field) {
SCOPED_TRACE(expected_label);
EXPECT_EQ(UTF8ToUTF16(expected_label), field.label);
EXPECT_EQ(UTF8ToUTF16(expected_name), field.name);
@@ -623,8 +623,8 @@ class AutofillManagerTest : public TabContentsTestHarness {
}
void GetAutofillSuggestions(int query_id,
- const webkit::forms::FormData& form,
- const webkit::forms::FormField& field) {
+ const chrome::FormData& form,
+ const chrome::FormField& field) {
autofill_manager_->OnQueryFormFieldAutofill(query_id,
form,
field,
@@ -632,8 +632,8 @@ class AutofillManagerTest : public TabContentsTestHarness {
false);
}
- void GetAutofillSuggestions(const webkit::forms::FormData& form,
- const webkit::forms::FormField& field) {
+ void GetAutofillSuggestions(const chrome::FormData& form,
+ const chrome::FormField& field) {
GetAutofillSuggestions(kDefaultPageID, form, field);
}
@@ -642,7 +642,7 @@ class AutofillManagerTest : public TabContentsTestHarness {
SendSuggestions(&result);
}
- void FormsSeen(const std::vector<webkit::forms::FormData>& forms) {
+ void FormsSeen(const std::vector<chrome::FormData>& forms) {
autofill_manager_->OnFormsSeen(forms, base::TimeTicks());
}
@@ -652,8 +652,8 @@ class AutofillManagerTest : public TabContentsTestHarness {
}
void FillAutofillFormData(int query_id,
- const webkit::forms::FormData& form,
- const webkit::forms::FormField& field,
+ const chrome::FormData& form,
+ const chrome::FormField& field,
int unique_id) {
autofill_manager_->OnFillAutofillFormData(query_id, form, field, unique_id);
}
@@ -3083,14 +3083,14 @@ class MockAutofillExternalDelegate : public TestAutofillExternalDelegate {
virtual ~MockAutofillExternalDelegate() {}
MOCK_METHOD5(OnQuery, void(int query_id,
- const webkit::forms::FormData& form,
- const webkit::forms::FormField& field,
+ const chrome::FormData& form,
+ const chrome::FormField& field,
const gfx::Rect& bounds,
bool display_warning));
virtual void OnQueryPlatformSpecific(int query_id,
- const webkit::forms::FormData& form,
- const webkit::forms::FormField& field,
+ const chrome::FormData& form,
+ const chrome::FormField& field,
const gfx::Rect& bounds) OVERRIDE {}
private:

Powered by Google App Engine
This is Rietveld 408576698