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 <stddef.h> |
| 6 |
5 #include <set> | 7 #include <set> |
6 #include <vector> | 8 #include <vector> |
7 | 9 |
8 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
9 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
11 #include "base/time/time.h" | 13 #include "base/time/time.h" |
12 #include "components/history/core/browser/url_database.h" | 14 #include "components/history/core/browser/url_database.h" |
13 #include "components/history/core/browser/visit_database.h" | 15 #include "components/history/core/browser/visit_database.h" |
14 #include "sql/connection.h" | 16 #include "sql/connection.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 AddVisit(&forward_2, SOURCE_BROWSED); | 587 AddVisit(&forward_2, SOURCE_BROWSED); |
586 | 588 |
587 EXPECT_TRUE(GetHistoryCount(shift_forward, | 589 EXPECT_TRUE(GetHistoryCount(shift_forward, |
588 shift_forward + TimeDelta::FromHours(24), | 590 shift_forward + TimeDelta::FromHours(24), |
589 &result)); | 591 &result)); |
590 EXPECT_EQ(2, result); | 592 EXPECT_EQ(2, result); |
591 } | 593 } |
592 } | 594 } |
593 | 595 |
594 } // namespace history | 596 } // namespace history |
OLD | NEW |