Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/browser/history/top_sites_impl_unittest.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "base/task/cancelable_task_tracker.h" 9 #include "base/task/cancelable_task_tracker.h"
10 #include "chrome/browser/history/history_service_factory.h" 10 #include "chrome/browser/history/history_service_factory.h"
11 #include "chrome/browser/history/top_sites_factory.h" 11 #include "chrome/browser/history/top_sites_factory.h"
12 #include "chrome/browser/history/top_sites_impl.h"
13 #include "chrome/common/chrome_constants.h" 12 #include "chrome/common/chrome_constants.h"
14 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
15 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
16 #include "components/history/core/browser/history_db_task.h" 15 #include "components/history/core/browser/history_db_task.h"
17 #include "components/history/core/browser/history_types.h" 16 #include "components/history/core/browser/history_types.h"
18 #include "components/history/core/browser/top_sites.h" 17 #include "components/history/core/browser/top_sites.h"
19 #include "components/history/core/browser/top_sites_cache.h" 18 #include "components/history/core/browser/top_sites_cache.h"
19 #include "components/history/core/browser/top_sites_impl.h"
20 #include "components/history/core/browser/top_sites_observer.h" 20 #include "components/history/core/browser/top_sites_observer.h"
21 #include "components/history/core/test/history_unittest_base.h" 21 #include "components/history/core/test/history_unittest_base.h"
22 #include "content/public/test/test_browser_thread.h" 22 #include "content/public/test/test_browser_thread.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
25 #include "ui/gfx/codec/jpeg_codec.h" 25 #include "ui/gfx/codec/jpeg_codec.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
28 using content::BrowserThread; 28 using content::BrowserThread;
29 29
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize()); 1651 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize());
1652 orig_thumbnail.lockPixels(); 1652 orig_thumbnail.lockPixels();
1653 thumbnail.lockPixels(); 1653 thumbnail.lockPixels();
1654 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(), 1654 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(),
1655 orig_thumbnail.getSize())); 1655 orig_thumbnail.getSize()));
1656 thumbnail.unlockPixels(); 1656 thumbnail.unlockPixels();
1657 orig_thumbnail.unlockPixels(); 1657 orig_thumbnail.unlockPixels();
1658 } 1658 }
1659 1659
1660 } // namespace history 1660 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_impl.cc ('k') | chrome/browser/importer/ie_importer_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698