| 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/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/archived_database.h" | 20 #include "chrome/browser/history/archived_database.h" |
| 21 #include "chrome/browser/history/expire_history_backend.h" | 21 #include "chrome/browser/history/expire_history_backend.h" |
| 22 #include "chrome/browser/history/history_database.h" | 22 #include "chrome/browser/history/history_database.h" |
| 23 #include "chrome/browser/history/history_notifications.h" | 23 #include "chrome/browser/history/history_notifications.h" |
| 24 #include "chrome/browser/history/thumbnail_database.h" | 24 #include "chrome/browser/history/thumbnail_database.h" |
| 25 #include "chrome/browser/history/top_sites.h" | 25 #include "chrome/browser/history/top_sites.h" |
| 26 #include "chrome/common/thumbnail_score.h" | 26 #include "chrome/common/thumbnail_score.h" |
| 27 #include "chrome/test/base/testing_profile.h" | 27 #include "chrome/test/base/testing_profile.h" |
| 28 #include "chrome/tools/profiles/thumbnail-inl.h" | 28 #include "chrome/tools/profiles/thumbnail-inl.h" |
| 29 #include "components/bookmarks/core/browser/bookmark_model.h" | 29 #include "components/bookmarks/browser/bookmark_model.h" |
| 30 #include "components/bookmarks/core/browser/bookmark_utils.h" | 30 #include "components/bookmarks/browser/bookmark_utils.h" |
| 31 #include "components/bookmarks/core/test/test_bookmark_client.h" | 31 #include "components/bookmarks/test/test_bookmark_client.h" |
| 32 #include "content/public/test/test_browser_thread.h" | 32 #include "content/public/test/test_browser_thread.h" |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 33 #include "testing/gtest/include/gtest/gtest.h" |
| 34 #include "third_party/skia/include/core/SkBitmap.h" | 34 #include "third_party/skia/include/core/SkBitmap.h" |
| 35 #include "ui/gfx/codec/jpeg_codec.h" | 35 #include "ui/gfx/codec/jpeg_codec.h" |
| 36 | 36 |
| 37 using base::Time; | 37 using base::Time; |
| 38 using base::TimeDelta; | 38 using base::TimeDelta; |
| 39 using base::TimeTicks; | 39 using base::TimeTicks; |
| 40 using content::BrowserThread; | 40 using content::BrowserThread; |
| 41 | 41 |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 main_db_->GetVisitsForURL(url_id, &archived_visits); | 951 main_db_->GetVisitsForURL(url_id, &archived_visits); |
| 952 EXPECT_EQ(0U, archived_visits.size()); | 952 EXPECT_EQ(0U, archived_visits.size()); |
| 953 } | 953 } |
| 954 | 954 |
| 955 // TODO(brettw) add some visits with no URL to make sure everything is updated | 955 // TODO(brettw) add some visits with no URL to make sure everything is updated |
| 956 // properly. Have the visits also refer to nonexistent FTS rows. | 956 // properly. Have the visits also refer to nonexistent FTS rows. |
| 957 // | 957 // |
| 958 // Maybe also refer to invalid favicons. | 958 // Maybe also refer to invalid favicons. |
| 959 | 959 |
| 960 } // namespace history | 960 } // namespace history |
| OLD | NEW |