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" | |
12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.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/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "chrome/browser/chrome_notification_types.h" | 19 #include "chrome/browser/chrome_notification_types.h" |
20 #include "chrome/browser/history/expire_history_backend.h" | 20 #include "chrome/browser/history/expire_history_backend.h" |
21 #include "chrome/browser/history/history_database.h" | 21 #include "chrome/browser/history/history_database.h" |
22 #include "chrome/browser/history/history_notifications.h" | 22 #include "chrome/browser/history/history_notifications.h" |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 EXPECT_TRUE(all->Read(now, main_db_.get(), &visits, 1)); | 877 EXPECT_TRUE(all->Read(now, main_db_.get(), &visits, 1)); |
878 EXPECT_EQ(1U, visits.size()); | 878 EXPECT_EQ(1U, visits.size()); |
879 } | 879 } |
880 | 880 |
881 // TODO(brettw) add some visits with no URL to make sure everything is updated | 881 // TODO(brettw) add some visits with no URL to make sure everything is updated |
882 // properly. Have the visits also refer to nonexistent FTS rows. | 882 // properly. Have the visits also refer to nonexistent FTS rows. |
883 // | 883 // |
884 // Maybe also refer to invalid favicons. | 884 // Maybe also refer to invalid favicons. |
885 | 885 |
886 } // namespace history | 886 } // namespace history |
OLD | NEW |