OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "chrome/browser/history/history.h" | 8 #include "chrome/browser/history/history.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
| 11 using base::Time; |
| 12 using base::TimeDelta; |
| 13 |
11 // Tests the history service for querying functionality. | 14 // Tests the history service for querying functionality. |
12 | 15 |
13 namespace history { | 16 namespace history { |
14 | 17 |
15 namespace { | 18 namespace { |
16 | 19 |
17 struct TestEntry { | 20 struct TestEntry { |
18 const char* url; | 21 const char* url; |
19 const wchar_t* title; | 22 const wchar_t* title; |
20 const int days_ago; | 23 const int days_ago; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 323 |
321 // Now with collapsing. | 324 // Now with collapsing. |
322 options.most_recent_visit_only = true; | 325 options.most_recent_visit_only = true; |
323 QueryHistory(std::wstring(L"Other"), options, &results); | 326 QueryHistory(std::wstring(L"Other"), options, &results); |
324 EXPECT_EQ(1, results.urls().size()); | 327 EXPECT_EQ(1, results.urls().size()); |
325 EXPECT_TRUE(NthResultIs(results, 0, 4)); | 328 EXPECT_TRUE(NthResultIs(results, 0, 4)); |
326 } | 329 } |
327 */ | 330 */ |
328 | 331 |
329 } // namespace history | 332 } // namespace history |
OLD | NEW |