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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/callback.h" | 6 #include "base/callback.h" |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
13 #include "chrome/test/testing_browser_process_test.h" | 13 #include "chrome/test/base/testing_browser_process_test.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using base::Time; | 16 using base::Time; |
17 using base::TimeDelta; | 17 using base::TimeDelta; |
18 | 18 |
19 // Tests the history service for querying functionality. | 19 // Tests the history service for querying functionality. |
20 | 20 |
21 namespace history { | 21 namespace history { |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 QueryOptions options; | 342 QueryOptions options; |
343 QueryResults results; | 343 QueryResults results; |
344 | 344 |
345 QueryHistory("Other", options, &results); | 345 QueryHistory("Other", options, &results); |
346 EXPECT_EQ(1, results.urls().size()); | 346 EXPECT_EQ(1, results.urls().size()); |
347 EXPECT_TRUE(NthResultIs(results, 0, 4)); | 347 EXPECT_TRUE(NthResultIs(results, 0, 4)); |
348 } | 348 } |
349 */ | 349 */ |
350 | 350 |
351 } // namespace history | 351 } // namespace history |
OLD | NEW |