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/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
11 #include "chrome/browser/history/archived_database.h" | 11 #include "chrome/browser/history/archived_database.h" |
12 #include "chrome/browser/history/expire_history_backend.h" | 12 #include "chrome/browser/history/expire_history_backend.h" |
13 #include "chrome/browser/history/history_database.h" | 13 #include "chrome/browser/history/history_database.h" |
14 #include "chrome/browser/history/text_database_manager.h" | 14 #include "chrome/browser/history/text_database_manager.h" |
15 #include "chrome/browser/history/thumbnail_database.h" | 15 #include "chrome/browser/history/thumbnail_database.h" |
16 #include "chrome/common/jpeg_codec.h" | 16 #include "chrome/common/jpeg_codec.h" |
17 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
18 #include "chrome/common/thumbnail_score.h" | 18 #include "chrome/common/thumbnail_score.h" |
19 #include "chrome/tools/profiles/thumbnail-inl.h" | 19 #include "chrome/tools/profiles/thumbnail-inl.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "SkBitmap.h" | 21 #include "SkBitmap.h" |
22 | 22 |
| 23 using base::Time; |
| 24 using base::TimeDelta; |
| 25 using base::TimeTicks; |
| 26 |
23 // The test must be in the history namespace for the gtest forward declarations | 27 // The test must be in the history namespace for the gtest forward declarations |
24 // to work. It also eliminates a bunch of ugly "history::". | 28 // to work. It also eliminates a bunch of ugly "history::". |
25 namespace history { | 29 namespace history { |
26 | 30 |
27 // ExpireHistoryTest ----------------------------------------------------------- | 31 // ExpireHistoryTest ----------------------------------------------------------- |
28 | 32 |
29 class ExpireHistoryTest : public testing::Test, | 33 class ExpireHistoryTest : public testing::Test, |
30 public BroadcastNotificationDelegate { | 34 public BroadcastNotificationDelegate { |
31 public: | 35 public: |
32 ExpireHistoryTest() | 36 ExpireHistoryTest() |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 // (max deleted). | 693 // (max deleted). |
690 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1)); | 694 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1)); |
691 } | 695 } |
692 | 696 |
693 // TODO(brettw) add some visits with no URL to make sure everything is updated | 697 // TODO(brettw) add some visits with no URL to make sure everything is updated |
694 // properly. Have the visits also refer to nonexistant FTS rows. | 698 // properly. Have the visits also refer to nonexistant FTS rows. |
695 // | 699 // |
696 // Maybe also refer to invalid favicons. | 700 // Maybe also refer to invalid favicons. |
697 | 701 |
698 } // namespace history | 702 } // namespace history |
OLD | NEW |