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 "chrome/browser/autocomplete/history_quick_provider.h" | 5 #include "chrome/browser/autocomplete/history_quick_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/history/history_database.h" | 25 #include "chrome/browser/history/history_database.h" |
26 #include "chrome/browser/history/history_service.h" | 26 #include "chrome/browser/history/history_service.h" |
27 #include "chrome/browser/history/history_service_factory.h" | 27 #include "chrome/browser/history/history_service_factory.h" |
28 #include "chrome/browser/history/in_memory_url_index.h" | 28 #include "chrome/browser/history/in_memory_url_index.h" |
29 #include "chrome/browser/history/url_index_private_data.h" | 29 #include "chrome/browser/history/url_index_private_data.h" |
30 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" | 30 #include "chrome/browser/search_engines/chrome_template_url_service_client.h" |
31 #include "chrome/browser/search_engines/template_url_service_factory.h" | 31 #include "chrome/browser/search_engines/template_url_service_factory.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "chrome/test/base/testing_browser_process.h" | 33 #include "chrome/test/base/testing_browser_process.h" |
34 #include "chrome/test/base/testing_profile.h" | 34 #include "chrome/test/base/testing_profile.h" |
35 #include "components/autocomplete/autocomplete_match.h" | |
36 #include "components/bookmarks/test/bookmark_test_helpers.h" | 35 #include "components/bookmarks/test/bookmark_test_helpers.h" |
37 #include "components/history/core/browser/url_database.h" | 36 #include "components/history/core/browser/url_database.h" |
38 #include "components/metrics/proto/omnibox_event.pb.h" | 37 #include "components/metrics/proto/omnibox_event.pb.h" |
| 38 #include "components/omnibox/autocomplete_match.h" |
39 #include "components/search_engines/search_terms_data.h" | 39 #include "components/search_engines/search_terms_data.h" |
40 #include "components/search_engines/template_url.h" | 40 #include "components/search_engines/template_url.h" |
41 #include "components/search_engines/template_url_service.h" | 41 #include "components/search_engines/template_url_service.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
43 #include "content/public/test/test_browser_thread.h" | 43 #include "content/public/test/test_browser_thread.h" |
44 #include "content/public/test/test_utils.h" | 44 #include "content/public/test/test_utils.h" |
45 #include "sql/transaction.h" | 45 #include "sql/transaction.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 | 47 |
48 using base::ASCIIToUTF16; | 48 using base::ASCIIToUTF16; |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 | 775 |
776 TEST_F(HQPOrderingTest, TEAMatch) { | 776 TEST_F(HQPOrderingTest, TEAMatch) { |
777 std::vector<std::string> expected_urls; | 777 std::vector<std::string> expected_urls; |
778 expected_urls.push_back("http://www.teamliquid.net/"); | 778 expected_urls.push_back("http://www.teamliquid.net/"); |
779 expected_urls.push_back("http://www.teamliquid.net/tlpd"); | 779 expected_urls.push_back("http://www.teamliquid.net/tlpd"); |
780 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); | 780 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); |
781 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, | 781 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, |
782 ASCIIToUTF16("www.teamliquid.net"), | 782 ASCIIToUTF16("www.teamliquid.net"), |
783 ASCIIToUTF16("mliquid.net")); | 783 ASCIIToUTF16("mliquid.net")); |
784 } | 784 } |
OLD | NEW |