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

Unified Diff: chrome/browser/autocomplete/autocomplete_unittest.cc

Issue 2857015: Clang/mac: Get unit_tests built. (Closed)
Patch Set: rebase Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/autofill/form_structure_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_unittest.cc
diff --git a/chrome/browser/autocomplete/autocomplete_unittest.cc b/chrome/browser/autocomplete/autocomplete_unittest.cc
index c1bb7581bd63c3367c753983f668deed69279df1..b396955cdb5c0299d69e7ac6cf92362755670f79 100644
--- a/chrome/browser/autocomplete/autocomplete_unittest.cc
+++ b/chrome/browser/autocomplete/autocomplete_unittest.cc
@@ -17,6 +17,12 @@
#define HISTORY_IDENTIFIER L"Chrome:History"
#define SEARCH_IDENTIFIER L"google.com/websearch/en"
+std::ostream& operator<<(std::ostream& os,
+ const AutocompleteResult::const_iterator& iter) {
+ return os << static_cast<const AutocompleteMatch*>(&(*iter));
+}
+
+
namespace {
const size_t num_results_per_provider = 3;
@@ -168,11 +174,6 @@ void AutocompleteProviderTest::Observe(NotificationType type,
}
}
-std::ostream& operator<<(std::ostream& os,
- const AutocompleteResult::const_iterator& iter) {
- return os << static_cast<const AutocompleteMatch*>(&(*iter));
-}
-
// Tests that the default selection is set properly when updating results.
TEST_F(AutocompleteProviderTest, Query) {
RunTest();
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/autofill/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698