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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/path_service.h" | |
13 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
14 #include "base/task/cancelable_task_tracker.h" | 13 #include "base/task/cancelable_task_tracker.h" |
15 #include "chrome/browser/history/history_service.h" | 14 #include "chrome/browser/history/history_service.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 | 16 |
18 using base::Time; | 17 using base::Time; |
19 using base::TimeDelta; | 18 using base::TimeDelta; |
20 | 19 |
21 // Tests the history service for querying functionality. | 20 // Tests the history service for querying functionality. |
22 | 21 |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 421 |
423 TEST_F(HistoryQueryTest, TextSearchPaging) { | 422 TEST_F(HistoryQueryTest, TextSearchPaging) { |
424 // Since results are fetched 1 and 2 at a time, entry #0 and #6 will not | 423 // Since results are fetched 1 and 2 at a time, entry #0 and #6 will not |
425 // be de-duplicated. Entry #4 does not contain the text "title", so it | 424 // be de-duplicated. Entry #4 does not contain the text "title", so it |
426 // shouldn't appear. | 425 // shouldn't appear. |
427 int expected_results[] = { 2, 3, 1, 7, 6, 5 }; | 426 int expected_results[] = { 2, 3, 1, 7, 6, 5 }; |
428 TestPaging("title", expected_results, arraysize(expected_results)); | 427 TestPaging("title", expected_results, arraysize(expected_results)); |
429 } | 428 } |
430 | 429 |
431 } // namespace history | 430 } // namespace history |
OLD | NEW |