| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/autocomplete/autocomplete_match.h" | 10 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 11 #include "chrome/browser/autocomplete/history_url_provider.h" | 11 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 12 #include "chrome/browser/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
| 13 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/test/testing_profile.h" | 14 #include "chrome/test/testing_profile.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #if defined(OS_MACOSX) | |
| 17 #include "base/mac_util.h" | |
| 18 #endif | |
| 19 | 16 |
| 20 using base::Time; | 17 using base::Time; |
| 21 using base::TimeDelta; | 18 using base::TimeDelta; |
| 22 | 19 |
| 23 struct TestURLInfo { | 20 struct TestURLInfo { |
| 24 std::string url; | 21 std::string url; |
| 25 std::string title; | 22 std::string title; |
| 26 int visit_count; | 23 int visit_count; |
| 27 int typed_count; | 24 int typed_count; |
| 28 } test_db[] = { | 25 } test_db[] = { |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 std::string navigation_1[] = {"http://test.com/"}; | 447 std::string navigation_1[] = {"http://test.com/"}; |
| 451 RunTest(L"test.com", std::wstring(), false, navigation_1, | 448 RunTest(L"test.com", std::wstring(), false, navigation_1, |
| 452 arraysize(navigation_1)); | 449 arraysize(navigation_1)); |
| 453 | 450 |
| 454 std::string navigation_2[] = {"http://slash/"}; | 451 std::string navigation_2[] = {"http://slash/"}; |
| 455 RunTest(L"slash", std::wstring(), false, navigation_2, | 452 RunTest(L"slash", std::wstring(), false, navigation_2, |
| 456 arraysize(navigation_2)); | 453 arraysize(navigation_2)); |
| 457 | 454 |
| 458 RunTest(L"this is a query", std::wstring(), false, NULL, 0); | 455 RunTest(L"this is a query", std::wstring(), false, NULL, 0); |
| 459 } | 456 } |
| OLD | NEW |