summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/top_sites_unittest.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 18:37:21 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 18:37:21 +0000
commitd8c6cabdea33f84a488f529bb027491739b2fb6e (patch)
tree8207fe14c048bbf22024dab8f208525602dacd67 /chrome/browser/history/top_sites_unittest.cc
parentb0ae9ea4ee49d8585a3886777ffa2957bb5e830a (diff)
downloadchromium_src-d8c6cabdea33f84a488f529bb027491739b2fb6e.zip
chromium_src-d8c6cabdea33f84a488f529bb027491739b2fb6e.tar.gz
chromium_src-d8c6cabdea33f84a488f529bb027491739b2fb6e.tar.bz2
Remove web store icon from most visited per Glen.
BUG=52669 Review URL: http://codereview.chromium.org/3140018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/top_sites_unittest.cc')
-rw-r--r--chrome/browser/history/top_sites_unittest.cc48
1 files changed, 0 insertions, 48 deletions
diff --git a/chrome/browser/history/top_sites_unittest.cc b/chrome/browser/history/top_sites_unittest.cc
index d6b7ae0..d0ab05f 100644
--- a/chrome/browser/history/top_sites_unittest.cc
+++ b/chrome/browser/history/top_sites_unittest.cc
@@ -1288,52 +1288,4 @@ TEST_F(TopSitesTest, AddPrepopulatedPages) {
EXPECT_EQ(welcome_url(), pages[1].url);
}
-TEST_F(TopSitesTest, GetIndexForChromeStore) {
- MostVisitedURLList pages;
- EXPECT_EQ(0, top_sites().GetIndexForChromeStore(pages));
-
- MostVisitedURL url = {themes_url()};
- pages.push_back(url);
- EXPECT_EQ(1, top_sites().GetIndexForChromeStore(pages));
-
- // Store should be added in the first filler.
- top_sites().AddPinnedURL(welcome_url(), 3);
- top_sites().AddPinnedURL(GURL("http://google.com"), 5);
- EXPECT_EQ(1, top_sites().GetIndexForChromeStore(pages));
-
- GURL store_url = MostVisitedHandler::GetChromeStoreURLWithLocale();
- url.url = store_url;
- pages.push_back(url);
-
- // Don't add store again.
- EXPECT_EQ(-1, top_sites().GetIndexForChromeStore(pages));
-
- pages.pop_back();
- EXPECT_EQ(1, top_sites().GetIndexForChromeStore(pages));
-
- pages.clear();
- url.url = GURL("http://bbc.com/");
- for (int i = 0; i < 8; i++) {
- pages.push_back(url);
- }
-
- EXPECT_EQ(7, top_sites().GetIndexForChromeStore(pages));
-
- pages[7].url = GURL("http://gmail.com");
- top_sites().AddPinnedURL(GURL("http://gmail.com"), 7);
-
- EXPECT_EQ(6, top_sites().GetIndexForChromeStore(pages));
-
- // If it's blacklisted, it should not be added.
- top_sites().AddBlacklistedURL(store_url);
- EXPECT_EQ(-1, top_sites().GetIndexForChromeStore(pages));
-
- top_sites().RemoveBlacklistedURL(store_url);
- EXPECT_EQ(6, top_sites().GetIndexForChromeStore(pages));
-
- top_sites().AddPinnedURL(GURL("http://bbc.com"), 2);
- // All pinned - can't add store.
- EXPECT_EQ(-1, top_sites().GetIndexForChromeStore(pages));
-}
-
} // namespace history