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

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

Issue 813503003: Move files from chrome/browser/history to components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon-owners
Patch Set: Created 5 years, 11 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/history_unittest_base.h"
12 #include "chrome/browser/history/top_sites.h" 11 #include "chrome/browser/history/top_sites.h"
13 #include "chrome/browser/history/top_sites_impl.h" 12 #include "chrome/browser/history/top_sites_impl.h"
14 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
15 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/history/core/browser/history_db_task.h" 16 #include "components/history/core/browser/history_db_task.h"
18 #include "components/history/core/browser/history_types.h" 17 #include "components/history/core/browser/history_types.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/test/history_unittest_base.h"
20 #include "content/public/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "ui/gfx/codec/jpeg_codec.h" 23 #include "ui/gfx/codec/jpeg_codec.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 27
28 namespace history { 28 namespace history {
29 29
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize()); 1632 ASSERT_EQ(orig_thumbnail.getSize(), thumbnail.getSize());
1633 orig_thumbnail.lockPixels(); 1633 orig_thumbnail.lockPixels();
1634 thumbnail.lockPixels(); 1634 thumbnail.lockPixels();
1635 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(), 1635 EXPECT_EQ(0, memcmp(orig_thumbnail.getPixels(), thumbnail.getPixels(),
1636 orig_thumbnail.getSize())); 1636 orig_thumbnail.getSize()));
1637 thumbnail.unlockPixels(); 1637 thumbnail.unlockPixels();
1638 orig_thumbnail.unlockPixels(); 1638 orig_thumbnail.unlockPixels();
1639 } 1639 }
1640 1640
1641 } // namespace history 1641 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698