summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_fixer_upper_unittest.cc
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 11:23:20 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 11:23:20 +0000
commit46cf4be9212a1634b8265ffd27602a4b168e96f9 (patch)
tree81738636868eebb5fe5a95c84bc8bb9ffe96e8da /chrome/browser/net/url_fixer_upper_unittest.cc
parentd3451d83da3c72c35c0c6b391833fe47f0b4236a (diff)
downloadchromium_src-46cf4be9212a1634b8265ffd27602a4b168e96f9.zip
chromium_src-46cf4be9212a1634b8265ffd27602a4b168e96f9.tar.gz
chromium_src-46cf4be9212a1634b8265ffd27602a4b168e96f9.tar.bz2
Fix url_fixer_upper_unittest two-phase lookup problems.
The operator<< for url_parse::Component needs to be declared in the same namespace as its parameter type, in this case url_parse. 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/3575002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_fixer_upper_unittest.cc')
-rw-r--r--chrome/browser/net/url_fixer_upper_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/net/url_fixer_upper_unittest.cc b/chrome/browser/net/url_fixer_upper_unittest.cc
index 67b5cae..bf08dc6 100644
--- a/chrome/browser/net/url_fixer_upper_unittest.cc
+++ b/chrome/browser/net/url_fixer_upper_unittest.cc
@@ -21,10 +21,14 @@ namespace {
};
};
-std::ostream& operator<<(std::ostream& os, const url_parse::Component& part) {
+namespace url_parse {
+
+std::ostream& operator<<(std::ostream& os, const Component& part) {
return os << "(begin=" << part.begin << ", len=" << part.len << ")";
}
+} // namespace url_parse
+
struct segment_case {
const std::string input;
const std::string result;