summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 10:25:42 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 10:25:42 +0000
commite554fafac33d7c60bd024e25caa0f373fedd181c (patch)
treecb81446dfd463cd88a60f8a046a329b2fe5aa99e /chrome/browser
parent0170c8ebcccc6da30b8fbc67df32fc39da63c536 (diff)
downloadchromium_src-e554fafac33d7c60bd024e25caa0f373fedd181c.zip
chromium_src-e554fafac33d7c60bd024e25caa0f373fedd181c.tar.gz
chromium_src-e554fafac33d7c60bd024e25caa0f373fedd181c.tar.bz2
Fix form_structure_unittest two-phase lookup problems.
The operator<< for webkit_glue::FormData needs to be declared in the same namespace as its parameter type, in this case webkit_glue. Otherwise Clang fails to compile this because it is more strict on the Standard. See http://clang.llvm.org/compatibility.html#dep_lookup for more info. BUG=none TEST=unit_tests Review URL: http://codereview.chromium.org/3583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/autofill/form_structure_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/autofill/form_structure_unittest.cc b/chrome/browser/autofill/form_structure_unittest.cc
index 0eea0a6..dffad66 100644
--- a/chrome/browser/autofill/form_structure_unittest.cc
+++ b/chrome/browser/autofill/form_structure_unittest.cc
@@ -15,7 +15,7 @@
using webkit_glue::FormData;
using WebKit::WebInputElement;
-namespace {
+namespace webkit_glue {
std::ostream& operator<<(std::ostream& os, const FormData& form) {
os << UTF16ToUTF8(form.name)
@@ -37,6 +37,10 @@ std::ostream& operator<<(std::ostream& os, const FormData& form) {
return os;
}
+} // namespace webkit_glue
+
+namespace {
+
TEST(FormStructureTest, FieldCount) {
FormData form;
form.method = ASCIIToUTF16("post");