| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/omnibox/browser/history_quick_provider.h" | 5 #include "components/omnibox/browser/history_quick_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <functional> | 10 #include <functional> |
| 9 #include <set> | 11 #include <set> |
| 10 #include <string> | 12 #include <string> |
| 11 #include <vector> | 13 #include <vector> |
| 12 | 14 |
| 13 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
| 16 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
| 17 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 19 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 22 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
| 20 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 23 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
| 21 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 24 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 25 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 23 #include "chrome/browser/history/history_service_factory.h" | 26 #include "chrome/browser/history/history_service_factory.h" |
| (...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 | 843 |
| 841 TEST_F(HQPOrderingTest, TEAMatch) { | 844 TEST_F(HQPOrderingTest, TEAMatch) { |
| 842 std::vector<std::string> expected_urls; | 845 std::vector<std::string> expected_urls; |
| 843 expected_urls.push_back("http://www.teamliquid.net/"); | 846 expected_urls.push_back("http://www.teamliquid.net/"); |
| 844 expected_urls.push_back("http://www.teamliquid.net/tlpd"); | 847 expected_urls.push_back("http://www.teamliquid.net/tlpd"); |
| 845 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); | 848 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); |
| 846 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, | 849 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, |
| 847 ASCIIToUTF16("www.teamliquid.net"), | 850 ASCIIToUTF16("www.teamliquid.net"), |
| 848 ASCIIToUTF16("mliquid.net")); | 851 ASCIIToUTF16("mliquid.net")); |
| 849 } | 852 } |
| OLD | NEW |