diff options
Diffstat (limited to 'chrome/browser/history/thumbnail_database_unittest.cc')
-rw-r--r-- | chrome/browser/history/thumbnail_database_unittest.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/history/thumbnail_database_unittest.cc b/chrome/browser/history/thumbnail_database_unittest.cc index c0d9ff1..1542033 100644 --- a/chrome/browser/history/thumbnail_database_unittest.cc +++ b/chrome/browser/history/thumbnail_database_unittest.cc @@ -329,4 +329,13 @@ TEST_F(ThumbnailDatabaseTest, NeverAcceptTotallyBoringThumbnail) { ASSERT_TRUE(base_boring.Equals(score_out)); } +TEST_F(ThumbnailDatabaseTest, NeedsMigrationToTopSites) { + ThumbnailDatabase db; + ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL)); + db.BeginTransaction(); + EXPECT_TRUE(db.NeedsMigrationToTopSites()); + EXPECT_TRUE(db.DropThumbnailsTable()); + EXPECT_FALSE(db.NeedsMigrationToTopSites()); +} + } // namespace history |