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

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

Issue 6813040: Add TopSites::GetTemporaryThumbnailScore(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/tab_contents/thumbnail_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites_unittest.cc
diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
index a806b8d83fac96d7bdda5c96ab588aca94fcba95..c197231bd249f891b364de518e497a107783e501 100644
--- a/chrome/browser/history/top_sites_unittest.cc
+++ b/chrome/browser/history/top_sites_unittest.cc
@@ -1098,6 +1098,11 @@ TEST_F(TopSitesTest, AddTemporaryThumbnail) {
// We shouldn't get the thumnail back though (the url isn't in to sites yet).
scoped_refptr<RefCountedBytes> out;
EXPECT_FALSE(top_sites()->GetPageThumbnail(unknown_url, &out));
+ // But we should be able to get the temporary page thumbnail score.
+ ThumbnailScore out_score;
+ EXPECT_TRUE(top_sites()->GetTemporaryPageThumbnailScore(unknown_url,
+ &out_score));
+ EXPECT_TRUE(medium_score.Equals(out_score));
std::vector<MostVisitedURL> list;
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/tab_contents/thumbnail_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698