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 <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "chrome/browser/bookmarks/bookmark_model.h" | 19 #include "chrome/browser/bookmarks/bookmark_model.h" |
20 #include "chrome/browser/bookmarks/bookmark_utils.h" | 20 #include "chrome/browser/bookmarks/bookmark_utils.h" |
21 #include "chrome/browser/history/archived_database.h" | 21 #include "chrome/browser/history/archived_database.h" |
22 #include "chrome/browser/history/expire_history_backend.h" | 22 #include "chrome/browser/history/expire_history_backend.h" |
23 #include "chrome/browser/history/history_database.h" | 23 #include "chrome/browser/history/history_database.h" |
24 #include "chrome/browser/history/history_notifications.h" | 24 #include "chrome/browser/history/history_notifications.h" |
25 #include "chrome/browser/history/text_database_manager.h" | 25 #include "chrome/browser/history/text_database_manager.h" |
26 #include "chrome/browser/history/thumbnail_database.h" | 26 #include "chrome/browser/history/thumbnail_database.h" |
27 #include "chrome/browser/history/top_sites.h" | 27 #include "chrome/browser/history/top_sites.h" |
28 #include "chrome/common/chrome_notification_types.h" | 28 #include "chrome/common/chrome_notification_types.h" |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1026 main_db_->GetVisitsForURL(url_id, &archived_visits); | 1026 main_db_->GetVisitsForURL(url_id, &archived_visits); |
1027 EXPECT_EQ(0U, archived_visits.size()); | 1027 EXPECT_EQ(0U, archived_visits.size()); |
1028 } | 1028 } |
1029 | 1029 |
1030 // TODO(brettw) add some visits with no URL to make sure everything is updated | 1030 // TODO(brettw) add some visits with no URL to make sure everything is updated |
1031 // properly. Have the visits also refer to nonexistent FTS rows. | 1031 // properly. Have the visits also refer to nonexistent FTS rows. |
1032 // | 1032 // |
1033 // Maybe also refer to invalid favicons. | 1033 // Maybe also refer to invalid favicons. |
1034 | 1034 |
1035 } // namespace history | 1035 } // namespace history |
OLD | NEW |