diff options
Diffstat (limited to 'webkit/glue/form_field.h')
-rw-r--r-- | webkit/glue/form_field.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/form_field.h b/webkit/glue/form_field.h index 88e3ed9..d6447fa 100644 --- a/webkit/glue/form_field.h +++ b/webkit/glue/form_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. @@ -37,7 +37,8 @@ class FormField { input_type_ = input_type; } - bool operator!=(const FormField& field); + bool operator==(const FormField& field) const; + bool operator!=(const FormField& field) const; private: string16 label_; @@ -47,6 +48,9 @@ class FormField { WebKit::WebInputElement::InputType input_type_; }; +// So we can compare FormFields with EXPECT_EQ(). +std::ostream& operator<<(std::ostream& os, const FormField& profile); + } // namespace webkit_glue #endif // WEBKIT_GLUE_FORM_FIELD_H_ |