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

Side by Side Diff: components/autofill/core/browser/form_structure_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/browser/form_structure.h" 5 #include "components/autofill/core/browser/form_structure.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/browser/autofill_metrics.h"
11 #include "components/autofill/content/browser/autocheckout_page_meta_data.h" 10 #include "components/autofill/content/browser/autocheckout_page_meta_data.h"
11 #include "components/autofill/core/browser/autofill_metrics.h"
12 #include "components/autofill/core/common/form_data.h" 12 #include "components/autofill/core/common/form_data.h"
13 #include "components/autofill/core/common/form_field_data.h" 13 #include "components/autofill/core/common/form_field_data.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
17 17
18 using WebKit::WebInputElement; 18 using WebKit::WebInputElement;
19 19
20 namespace autofill { 20 namespace autofill {
21 namespace { 21 namespace {
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 "<autofillqueryresponse><field autofilltype=\"3\" />" 2434 "<autofillqueryresponse><field autofilltype=\"3\" />"
2435 "<field autofilltype=\"9\" /></autofillqueryresponse>"; 2435 "<field autofilltype=\"9\" /></autofillqueryresponse>";
2436 FormStructure::ParseQueryResponse(kServerResponse, forms.get(), 2436 FormStructure::ParseQueryResponse(kServerResponse, forms.get(),
2437 &page_meta_data, TestAutofillMetrics()); 2437 &page_meta_data, TestAutofillMetrics());
2438 ASSERT_EQ(NAME_FIRST, forms[0]->field(0)->server_type()); 2438 ASSERT_EQ(NAME_FIRST, forms[0]->field(0)->server_type());
2439 ASSERT_EQ(NO_SERVER_DATA, forms[0]->field(1)->server_type()); 2439 ASSERT_EQ(NO_SERVER_DATA, forms[0]->field(1)->server_type());
2440 ASSERT_EQ(EMAIL_ADDRESS, forms[0]->field(2)->server_type()); 2440 ASSERT_EQ(EMAIL_ADDRESS, forms[0]->field(2)->server_type());
2441 } 2441 }
2442 2442
2443 } // namespace autofill 2443 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/form_structure.cc ('k') | components/autofill/core/browser/name_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698