| 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_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/gfx/jpeg_codec.h" | 9 #include "base/gfx/jpeg_codec.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_model.h" | 12 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 13 #include "chrome/browser/history/archived_database.h" | 13 #include "chrome/browser/history/archived_database.h" |
| 14 #include "chrome/browser/history/expire_history_backend.h" | 14 #include "chrome/browser/history/expire_history_backend.h" |
| 15 #include "chrome/browser/history/history_database.h" | 15 #include "chrome/browser/history/history_database.h" |
| 16 #include "chrome/browser/history/text_database_manager.h" | 16 #include "chrome/browser/history/text_database_manager.h" |
| 17 #include "chrome/browser/history/thumbnail_database.h" | 17 #include "chrome/browser/history/thumbnail_database.h" |
| 18 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
| 19 #include "chrome/common/thumbnail_score.h" | 19 #include "chrome/common/thumbnail_score.h" |
| 20 #include "chrome/tools/profiles/thumbnail-inl.h" | 20 #include "chrome/tools/profiles/thumbnail-inl.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 #include "SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
| 23 | 23 |
| 24 using base::Time; | 24 using base::Time; |
| 25 using base::TimeDelta; | 25 using base::TimeDelta; |
| 26 using base::TimeTicks; | 26 using base::TimeTicks; |
| 27 | 27 |
| 28 // Filename constants. | 28 // Filename constants. |
| 29 static const FilePath::CharType kTestDir[] = FILE_PATH_LITERAL("ExpireTest"); | 29 static const FilePath::CharType kTestDir[] = FILE_PATH_LITERAL("ExpireTest"); |
| 30 static const FilePath::CharType kHistoryFile[] = FILE_PATH_LITERAL("History"); | 30 static const FilePath::CharType kHistoryFile[] = FILE_PATH_LITERAL("History"); |
| 31 static const FilePath::CharType kArchivedHistoryFile[] = | 31 static const FilePath::CharType kArchivedHistoryFile[] = |
| 32 FILE_PATH_LITERAL("Archived History"); | 32 FILE_PATH_LITERAL("Archived History"); |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 // (max deleted). | 707 // (max deleted). |
| 708 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1)); | 708 EXPECT_TRUE(expirer_.ArchiveSomeOldHistory(visit_times[2], 1)); |
| 709 } | 709 } |
| 710 | 710 |
| 711 // TODO(brettw) add some visits with no URL to make sure everything is updated | 711 // TODO(brettw) add some visits with no URL to make sure everything is updated |
| 712 // properly. Have the visits also refer to nonexistant FTS rows. | 712 // properly. Have the visits also refer to nonexistant FTS rows. |
| 713 // | 713 // |
| 714 // Maybe also refer to invalid favicons. | 714 // Maybe also refer to invalid favicons. |
| 715 | 715 |
| 716 } // namespace history | 716 } // namespace history |
| OLD | NEW |