summaryrefslogtreecommitdiffstats
path: root/chrome/browser/thumbnail_store_unittest.cc
diff options
context:
space:
mode:
authormeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 17:27:19 +0000
committermeelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 17:27:19 +0000
commit4233940a69ea3ab796b34f419e62d4b31959708e (patch)
tree011c4a249f9599d316b424abb2012060e53a9ed2 /chrome/browser/thumbnail_store_unittest.cc
parent0f71843bc4772a7074536f10db5d505dd7c6a50e (diff)
downloadchromium_src-4233940a69ea3ab796b34f419e62d4b31959708e.zip
chromium_src-4233940a69ea3ab796b34f419e62d4b31959708e.tar.gz
chromium_src-4233940a69ea3ab796b34f419e62d4b31959708e.tar.bz2
Qurey redirects when a thumbnail is set.
Update list of most visited URLs on an exponential timer, resetting when the history is cleared. Review URL: http://codereview.chromium.org/155619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20964 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/thumbnail_store_unittest.cc')
-rw-r--r--chrome/browser/thumbnail_store_unittest.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/thumbnail_store_unittest.cc b/chrome/browser/thumbnail_store_unittest.cc
index 8d3cb8a..483cdf1 100644
--- a/chrome/browser/thumbnail_store_unittest.cc
+++ b/chrome/browser/thumbnail_store_unittest.cc
@@ -145,8 +145,8 @@ TEST_F(ThumbnailStoreTest, UpdateThumbnail) {
// store_ google_ with a low score, then weewar_ with a higher score
// and check that weewar_ overwrote google_.
- EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_));
- EXPECT_TRUE(store_->SetPageThumbnail(url_, *weewar_, score2));
+ EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_, false));
+ EXPECT_TRUE(store_->SetPageThumbnail(url_, *weewar_, score2, false));
EXPECT_TRUE(store_->GetPageThumbnail(url_, &read_image));
EXPECT_EQ(read_image->data.size(), jpeg_weewar_->data.size());
@@ -165,7 +165,7 @@ TEST_F(ThumbnailStoreTest, RetrieveFromCache) {
// Store a thumbnail into the cache and retrieve it.
- EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_));
+ EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_, false));
EXPECT_TRUE(store_->GetPageThumbnail(url_, &read_image));
EXPECT_TRUE(score_.Equals((*store_->cache_)[url_].score_));
EXPECT_TRUE(read_image->data.size() == jpeg_google_->data.size());
@@ -176,7 +176,7 @@ TEST_F(ThumbnailStoreTest, RetrieveFromCache) {
}
TEST_F(ThumbnailStoreTest, RetrieveFromDisk) {
- EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_));
+ EXPECT_TRUE(store_->SetPageThumbnail(url_, *google_, score_, false));
// Write the thumbnail to disk and retrieve it.
@@ -216,7 +216,8 @@ TEST_F(ThumbnailStoreTest, FollowRedirects) {
store_->most_visited_urls_->push_back(my_url);
- EXPECT_TRUE(store_->SetPageThumbnail(GURL("google.com"), *google_, score_));
+ EXPECT_TRUE(store_->SetPageThumbnail(GURL("google.com"), *google_, score_,
+ false));
EXPECT_TRUE(store_->GetPageThumbnail(my_url, &read_image));
read_image->Release();