summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_field.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-07 21:44:29 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-07 21:44:29 +0000
commit7465b14cbc710e2cc68af27c62eeed5708bef476 (patch)
tree4f51960a253d32d44d6a4a6ef9864cbee7a470e8 /chrome/browser/autofill/autofill_field.h
parentb1e4eb506631e71476d10aeeebcd347585b31566 (diff)
downloadchromium_src-7465b14cbc710e2cc68af27c62eeed5708bef476.zip
chromium_src-7465b14cbc710e2cc68af27c62eeed5708bef476.tar.gz
chromium_src-7465b14cbc710e2cc68af27c62eeed5708bef476.tar.bz2
Add tests for AutoFillField.
BUG=none TEST=AutoFillFieldTest Review URL: http://codereview.chromium.org/669203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40876 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_field.h')
-rw-r--r--chrome/browser/autofill/autofill_field.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/autofill/autofill_field.h b/chrome/browser/autofill/autofill_field.h
index 2deb239..f28ecf8 100644
--- a/chrome/browser/autofill/autofill_field.h
+++ b/chrome/browser/autofill/autofill_field.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,7 +20,12 @@ class AutoFillField : public webkit_glue::FormField {
const string16& unique_name() const { return unique_name_; }
AutoFillFieldType heuristic_type() const { return heuristic_type_; }
+ AutoFillFieldType server_type() const { return server_type_; }
const FieldTypeSet& possible_types() const { return possible_types_; }
+
+ // Sets the heuristic type of this field, validating the input.
+ void set_heuristic_type(const AutoFillFieldType& type);
+ void set_server_type(const AutoFillFieldType& type) { server_type_ = type; }
void set_possible_types(const FieldTypeSet& possible_types) {
possible_types_ = possible_types;
}
@@ -36,9 +41,6 @@ class AutoFillField : public webkit_glue::FormField {
// input type in a 32-bit hash.
std::string FieldSignature() const;
- // Sets the heuristic type of this field, validating the input.
- void set_heuristic_type(const AutoFillFieldType& type);
-
// Returns true if the field type has been determined (without the text in the
// field).
bool IsFieldFillable() const;