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

Side by Side Diff: components/autofill/browser/name_field.h

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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_AUTOFILL_BROWSER_NAME_FIELD_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_NAME_FIELD_H_
7
8 #include <vector>
9
10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h"
12 #include "components/autofill/browser/autofill_field.h"
13 #include "components/autofill/browser/form_field.h"
14
15 namespace autofill {
16
17 class AutofillScanner;
18
19 // A form field that can parse either a FullNameField or a FirstLastNameField.
20 class NameField : public FormField {
21 public:
22 static FormField* Parse(AutofillScanner* scanner);
23
24 protected:
25 NameField() {}
26
27 // FormField:
28 virtual bool ClassifyField(FieldTypeMap* map) const OVERRIDE;
29
30 private:
31 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstMiddleLast);
32 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstMiddleLast2);
33 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstLast);
34 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstLast2);
35 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstLastMiddleWithSpaces);
36 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstLastEmpty);
37 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, FirstMiddleLastEmpty);
38 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, MiddleInitial);
39 FRIEND_TEST_ALL_PREFIXES(NameFieldTest, MiddleInitialAtEnd);
40
41 DISALLOW_COPY_AND_ASSIGN(NameField);
42 };
43
44 } // namespace autofill
45
46 #endif // COMPONENTS_AUTOFILL_BROWSER_NAME_FIELD_H_
OLDNEW
« no previous file with comments | « components/autofill/browser/form_structure_unittest.cc ('k') | components/autofill/browser/name_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698