| 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 "components/history/core/browser/expire_history_backend.h" | 5 #include "components/history/core/browser/expire_history_backend.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <utility> | 11 #include <utility> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 15 #include "base/files/scoped_temp_dir.h" | 16 #include "base/files/scoped_temp_dir.h" |
| 16 #include "base/macros.h" | 17 #include "base/macros.h" |
| 17 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
| 19 #include "base/prefs/pref_registry_simple.h" | 20 #include "base/prefs/pref_registry_simple.h" |
| 20 #include "base/prefs/testing_pref_service.h" | 21 #include "base/prefs/testing_pref_service.h" |
| 21 #include "base/scoped_observer.h" | 22 #include "base/scoped_observer.h" |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 EXPECT_TRUE(all->Read(now, main_db_.get(), &visits, 1)); | 888 EXPECT_TRUE(all->Read(now, main_db_.get(), &visits, 1)); |
| 888 EXPECT_EQ(1U, visits.size()); | 889 EXPECT_EQ(1U, visits.size()); |
| 889 } | 890 } |
| 890 | 891 |
| 891 // TODO(brettw) add some visits with no URL to make sure everything is updated | 892 // TODO(brettw) add some visits with no URL to make sure everything is updated |
| 892 // properly. Have the visits also refer to nonexistent FTS rows. | 893 // properly. Have the visits also refer to nonexistent FTS rows. |
| 893 // | 894 // |
| 894 // Maybe also refer to invalid favicons. | 895 // Maybe also refer to invalid favicons. |
| 895 | 896 |
| 896 } // namespace history | 897 } // namespace history |
| OLD | NEW |