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 16 matching lines...) Expand all Loading... |
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_database.h" | 29 #include "chrome/browser/history/url_database.h" |
30 #include "chrome/browser/history/url_index_private_data.h" | 30 #include "chrome/browser/history/url_index_private_data.h" |
31 #include "chrome/browser/search_engines/template_url.h" | 31 #include "chrome/browser/search_engines/template_url.h" |
32 #include "chrome/browser/search_engines/template_url_service.h" | 32 #include "chrome/browser/search_engines/template_url_service.h" |
33 #include "chrome/browser/search_engines/template_url_service_factory.h" | 33 #include "chrome/browser/search_engines/template_url_service_factory.h" |
34 #include "chrome/common/pref_names.h" | 34 #include "chrome/common/pref_names.h" |
35 #include "chrome/test/base/testing_browser_process.h" | 35 #include "chrome/test/base/testing_browser_process.h" |
36 #include "chrome/test/base/testing_profile.h" | 36 #include "chrome/test/base/testing_profile.h" |
37 #include "components/bookmarks/core/test/bookmark_test_helpers.h" | 37 #include "components/bookmarks/test/bookmark_test_helpers.h" |
38 #include "content/public/test/test_browser_thread.h" | 38 #include "content/public/test/test_browser_thread.h" |
39 #include "sql/transaction.h" | 39 #include "sql/transaction.h" |
40 #include "testing/gtest/include/gtest/gtest.h" | 40 #include "testing/gtest/include/gtest/gtest.h" |
41 | 41 |
42 using base::ASCIIToUTF16; | 42 using base::ASCIIToUTF16; |
43 using base::Time; | 43 using base::Time; |
44 using base::TimeDelta; | 44 using base::TimeDelta; |
45 | 45 |
46 using content::BrowserThread; | 46 using content::BrowserThread; |
47 | 47 |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 708 |
709 TEST_F(HQPOrderingTest, TEAMatch) { | 709 TEST_F(HQPOrderingTest, TEAMatch) { |
710 std::vector<std::string> expected_urls; | 710 std::vector<std::string> expected_urls; |
711 expected_urls.push_back("http://www.teamliquid.net/"); | 711 expected_urls.push_back("http://www.teamliquid.net/"); |
712 expected_urls.push_back("http://www.teamliquid.net/tlpd"); | 712 expected_urls.push_back("http://www.teamliquid.net/tlpd"); |
713 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); | 713 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); |
714 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, | 714 RunTest(ASCIIToUTF16("tea"), false, expected_urls, true, |
715 ASCIIToUTF16("www.teamliquid.net"), | 715 ASCIIToUTF16("www.teamliquid.net"), |
716 ASCIIToUTF16("mliquid.net")); | 716 ASCIIToUTF16("mliquid.net")); |
717 } | 717 } |
OLD | NEW |