| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/autocomplete/history_url_provider.h" | 10 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 10 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
| 11 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
| 12 #include "chrome/test/testing_profile.h" | 13 #include "chrome/test/testing_profile.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #if defined(OS_MACOSX) | 15 #if defined(OS_MACOSX) |
| 15 #include "base/mac_util.h" | 16 #include "base/mac_util.h" |
| 16 #endif | 17 #endif |
| 17 | 18 |
| 18 using base::Time; | 19 using base::Time; |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 std::string navigation_1[] = {"http://test.com/"}; | 414 std::string navigation_1[] = {"http://test.com/"}; |
| 414 RunTest(L"test.com", std::wstring(), false, navigation_1, | 415 RunTest(L"test.com", std::wstring(), false, navigation_1, |
| 415 arraysize(navigation_1)); | 416 arraysize(navigation_1)); |
| 416 | 417 |
| 417 std::string navigation_2[] = {"http://slash/"}; | 418 std::string navigation_2[] = {"http://slash/"}; |
| 418 RunTest(L"slash", std::wstring(), false, navigation_2, | 419 RunTest(L"slash", std::wstring(), false, navigation_2, |
| 419 arraysize(navigation_2)); | 420 arraysize(navigation_2)); |
| 420 | 421 |
| 421 RunTest(L"this is a query", std::wstring(), false, NULL, 0); | 422 RunTest(L"this is a query", std::wstring(), false, NULL, 0); |
| 422 } | 423 } |
| OLD | NEW |