OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/autocomplete/autocomplete.h" | 9 #include "chrome/browser/autocomplete/autocomplete.h" |
10 #include "chrome/browser/autocomplete/autocomplete_match.h" | 10 #include "chrome/browser/autocomplete/autocomplete_match.h" |
11 #include "chrome/browser/autocomplete/history_contents_provider.h" | 11 #include "chrome/browser/autocomplete/history_contents_provider.h" |
12 #include "chrome/browser/bookmarks/bookmark_model.h" | 12 #include "chrome/browser/bookmarks/bookmark_model.h" |
13 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/test/base/testing_browser_process.h" |
| 15 #include "chrome/test/base/testing_browser_process_test.h" |
14 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
15 #include "chrome/test/testing_browser_process.h" | |
16 #include "chrome/test/testing_browser_process_test.h" | |
17 #include "content/browser/browser_thread.h" | 17 #include "content/browser/browser_thread.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using base::Time; | 20 using base::Time; |
21 using base::TimeDelta; | 21 using base::TimeDelta; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 struct TestEntry { | 25 struct TestEntry { |
26 const char* url; | 26 const char* url; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 true, AutocompleteInput::ALL_MATCHES); | 271 true, AutocompleteInput::ALL_MATCHES); |
272 RunQuery(you_input, false); | 272 RunQuery(you_input, false); |
273 EXPECT_EQ(0U, matches().size()); | 273 EXPECT_EQ(0U, matches().size()); |
274 | 274 |
275 // Run a query that matches the bookmark | 275 // Run a query that matches the bookmark |
276 RunQuery(input, false); | 276 RunQuery(input, false); |
277 EXPECT_EQ(1U, matches().size()); | 277 EXPECT_EQ(1U, matches().size()); |
278 } | 278 } |
279 | 279 |
280 } // namespace | 280 } // namespace |
OLD | NEW |