OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> |
| 6 #include <utility> |
| 7 |
5 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
6 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
7 #include "base/file_path.h" | 10 #include "base/file_path.h" |
8 #include "base/file_util.h" | 11 #include "base/file_util.h" |
9 #include "base/path_service.h" | 12 #include "base/path_service.h" |
10 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
11 #include "base/scoped_temp_dir.h" | 14 #include "base/scoped_temp_dir.h" |
12 #include "base/string16.h" | 15 #include "base/string16.h" |
13 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/bookmarks/bookmark_model.h" | 17 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 18 #include "chrome/browser/browser_thread.h" |
15 #include "chrome/browser/history/archived_database.h" | 19 #include "chrome/browser/history/archived_database.h" |
16 #include "chrome/browser/history/expire_history_backend.h" | 20 #include "chrome/browser/history/expire_history_backend.h" |
17 #include "chrome/browser/history/history_database.h" | 21 #include "chrome/browser/history/history_database.h" |
18 #include "chrome/browser/history/history_notifications.h" | 22 #include "chrome/browser/history/history_notifications.h" |
19 #include "chrome/browser/history/text_database_manager.h" | 23 #include "chrome/browser/history/text_database_manager.h" |
20 #include "chrome/browser/history/thumbnail_database.h" | 24 #include "chrome/browser/history/thumbnail_database.h" |
21 #include "chrome/browser/history/top_sites.h" | 25 #include "chrome/browser/history/top_sites.h" |
22 #include "chrome/common/notification_service.h" | 26 #include "chrome/common/notification_service.h" |
23 #include "chrome/common/thumbnail_score.h" | 27 #include "chrome/common/thumbnail_score.h" |
24 #include "chrome/test/testing_profile.h" | 28 #include "chrome/test/testing_profile.h" |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 main_db_->GetVisitsForURL(url_id, &archived_visits); | 909 main_db_->GetVisitsForURL(url_id, &archived_visits); |
906 EXPECT_EQ(0U, archived_visits.size()); | 910 EXPECT_EQ(0U, archived_visits.size()); |
907 } | 911 } |
908 | 912 |
909 // TODO(brettw) add some visits with no URL to make sure everything is updated | 913 // TODO(brettw) add some visits with no URL to make sure everything is updated |
910 // properly. Have the visits also refer to nonexistent FTS rows. | 914 // properly. Have the visits also refer to nonexistent FTS rows. |
911 // | 915 // |
912 // Maybe also refer to invalid favicons. | 916 // Maybe also refer to invalid favicons. |
913 | 917 |
914 } // namespace history | 918 } // namespace history |
OLD | NEW |