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