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

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

Issue 14585015: Recommit the generate profile patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Load the browser dll manually on Windows. Created 7 years, 7 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/history_types.h ('k') | chrome/browser/history/top_sites.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_unittest.cc
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc
index 2ae7ae0c499b30ef2796984ff2a4b2d8169304ca..083905a5a9f233b62f8d46c1a2e47c4e2183f762 100644
--- a/chrome/browser/history/history_unittest.cc
+++ b/chrome/browser/history/history_unittest.cc
@@ -1261,34 +1261,6 @@ TEST_F(HistoryTest, MostVisitedURLs) {
EXPECT_EQ(2U, most_visited_urls_[3].redirects.size());
}
-// The version of the history database should be current in the "typical
-// history" example file or it will be imported on startup, throwing off timing
-// measurements.
-//
-// See test/data/profiles/profile_with_default_theme/README.txt for
-// instructions on how to up the version.
-TEST(HistoryProfileTest, TypicalProfileVersion) {
- base::FilePath file;
- ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &file));
- file = file.AppendASCII("profiles");
- file = file.AppendASCII("profile_with_default_theme");
- file = file.AppendASCII("Default");
- file = file.AppendASCII("History");
-
- int cur_version = HistoryDatabase::GetCurrentVersion();
-
- sql::Connection db;
- ASSERT_TRUE(db.Open(file));
-
- {
- sql::Statement s(db.GetUniqueStatement(
- "SELECT value FROM meta WHERE key = 'version'"));
- EXPECT_TRUE(s.Step());
- int file_version = s.ColumnInt(0);
- EXPECT_EQ(cur_version, file_version);
- }
-}
-
namespace {
// A HistoryDBTask implementation. Each time RunOnDBThread is invoked
« no previous file with comments | « chrome/browser/history/history_types.h ('k') | chrome/browser/history/top_sites.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698