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/memory/scoped_temp_dir.h" | |
10 #include "base/path_service.h" | 9 #include "base/path_service.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 "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using base::Time; | 15 using base::Time; |
16 using base::TimeDelta; | 16 using base::TimeDelta; |
17 | 17 |
18 // Tests the history service for querying functionality. | 18 // Tests the history service for querying functionality. |
19 | 19 |
20 namespace history { | 20 namespace history { |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 QueryOptions options; | 341 QueryOptions options; |
342 QueryResults results; | 342 QueryResults results; |
343 | 343 |
344 QueryHistory("Other", options, &results); | 344 QueryHistory("Other", options, &results); |
345 EXPECT_EQ(1, results.urls().size()); | 345 EXPECT_EQ(1, results.urls().size()); |
346 EXPECT_TRUE(NthResultIs(results, 0, 4)); | 346 EXPECT_TRUE(NthResultIs(results, 0, 4)); |
347 } | 347 } |
348 */ | 348 */ |
349 | 349 |
350 } // namespace history | 350 } // namespace history |
OLD | NEW |