| 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 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/search_engines/template_url.h" | 30 #include "chrome/browser/search_engines/template_url.h" |
| 31 #include "chrome/browser/search_engines/template_url_service.h" | 31 #include "chrome/browser/search_engines/template_url_service.h" |
| 32 #include "chrome/browser/search_engines/template_url_service_factory.h" | 32 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
| 34 #include "chrome/test/base/testing_browser_process.h" | 34 #include "chrome/test/base/testing_browser_process.h" |
| 35 #include "chrome/test/base/testing_profile.h" | 35 #include "chrome/test/base/testing_profile.h" |
| 36 #include "content/public/test/test_browser_thread.h" | 36 #include "content/public/test/test_browser_thread.h" |
| 37 #include "sql/transaction.h" | 37 #include "sql/transaction.h" |
| 38 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
| 39 | 39 |
| 40 using base::ASCIIToUTF16; |
| 40 using base::Time; | 41 using base::Time; |
| 41 using base::TimeDelta; | 42 using base::TimeDelta; |
| 42 | 43 |
| 43 using content::BrowserThread; | 44 using content::BrowserThread; |
| 44 | 45 |
| 45 struct TestURLInfo { | 46 struct TestURLInfo { |
| 46 std::string url; | 47 std::string url; |
| 47 std::string title; | 48 std::string title; |
| 48 int visit_count; | 49 int visit_count; |
| 49 int typed_count; | 50 int typed_count; |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 } | 625 } |
| 625 | 626 |
| 626 TEST_F(HQPOrderingTest, TEAMatch) { | 627 TEST_F(HQPOrderingTest, TEAMatch) { |
| 627 std::vector<std::string> expected_urls; | 628 std::vector<std::string> expected_urls; |
| 628 expected_urls.push_back("http://www.teamliquid.net/"); | 629 expected_urls.push_back("http://www.teamliquid.net/"); |
| 629 expected_urls.push_back("http://www.teamliquid.net/tlpd"); | 630 expected_urls.push_back("http://www.teamliquid.net/tlpd"); |
| 630 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); | 631 expected_urls.push_back("http://www.teamliquid.net/tlpd/korean/players"); |
| 631 RunTest(ASCIIToUTF16("tea"), expected_urls, true, | 632 RunTest(ASCIIToUTF16("tea"), expected_urls, true, |
| 632 ASCIIToUTF16("www.teamliquid.net")); | 633 ASCIIToUTF16("www.teamliquid.net")); |
| 633 } | 634 } |
| OLD | NEW |