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

Unified Diff: chrome/browser/history/top_sites_database_unittest.cc

Issue 53283004: Adding support for forced URLs to TopSites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed GetAllMostVisited. Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/top_sites_database.cc ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites_database_unittest.cc
diff --git a/chrome/browser/history/top_sites_database_unittest.cc b/chrome/browser/history/top_sites_database_unittest.cc
index 40040655ba1e99f1f7be813b2a46d5cc15bcb1de..062c6aee987c4c816b9dc6509a5c15dac413a4e3 100644
--- a/chrome/browser/history/top_sites_database_unittest.cc
+++ b/chrome/browser/history/top_sites_database_unittest.cc
@@ -219,6 +219,7 @@ TEST_F(TopSitesDatabaseTest, AddRemoveEditThumbnails) {
EXPECT_EQ(kUrl, urls[3].url);
// Change a forced URL to non-forced using SetPageThumbnail.
+ url3.last_forced_time = base::Time();
db.SetPageThumbnail(url3, 1, Images());
db.GetPageThumbnails(&urls, &thumbnails);
@@ -230,7 +231,6 @@ TEST_F(TopSitesDatabaseTest, AddRemoveEditThumbnails) {
EXPECT_EQ(plusUrl, urls[3].url); // Plus moves to second non-forced URL.
// Change a non-forced URL to earlier non-forced using UpdatePageRank.
- url3.last_forced_time = base::Time();
db.UpdatePageRank(url3, 0);
db.GetPageThumbnails(&urls, &thumbnails);
« no previous file with comments | « chrome/browser/history/top_sites_database.cc ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698