| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/memory/weak_ptr.h" | 6 #include "base/memory/weak_ptr.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/path_service.h" | |
| 9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/task/cancelable_task_tracker.h" | 9 #include "base/task/cancelable_task_tracker.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "chrome/browser/history/history_db_task.h" | 11 #include "chrome/browser/history/history_db_task.h" |
| 13 #include "chrome/browser/history/history_notifications.h" | 12 #include "chrome/browser/history/history_notifications.h" |
| 14 #include "chrome/browser/history/history_service_factory.h" | 13 #include "chrome/browser/history/history_service_factory.h" |
| 15 #include "chrome/browser/history/history_unittest_base.h" | 14 #include "chrome/browser/history/history_unittest_base.h" |
| 16 #include "chrome/browser/history/top_sites.h" | 15 #include "chrome/browser/history/top_sites.h" |
| 17 #include "chrome/browser/history/top_sites_cache.h" | 16 #include "chrome/browser/history/top_sites_cache.h" |
| 18 #include "chrome/browser/history/top_sites_impl.h" | 17 #include "chrome/browser/history/top_sites_impl.h" |
| (...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1683 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize()); | 1682 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize()); |
| 1684 orig_thumbnail.lockPixels(); | 1683 orig_thumbnail.lockPixels(); |
| 1685 thumbnail.lockPixels(); | 1684 thumbnail.lockPixels(); |
| 1686 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(), | 1685 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(), |
| 1687 orig_thumbnail.getSize())); | 1686 orig_thumbnail.getSize())); |
| 1688 thumbnail.unlockPixels(); | 1687 thumbnail.unlockPixels(); |
| 1689 orig_thumbnail.unlockPixels(); | 1688 orig_thumbnail.unlockPixels(); |
| 1690 } | 1689 } |
| 1691 | 1690 |
| 1692 } // namespace history | 1691 } // namespace history |
| OLD | NEW |