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

Unified Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 10520010: Not for review: Support sync init with missing or corrupt store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Documentation Created 8 years, 6 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
Index: chrome/browser/sync/profile_sync_service_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index 8e7672f902bd30b9e2f9a87b994401e6b65cf5af..7f0b4e748e964948fafa703eb1d043852bac381c 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -362,29 +362,6 @@ TEST_F(ProfileSyncServiceTest, TestStartupWithOldSyncData) {
ASSERT_NE(file2text.compare(nonsense2), 0);
}
-// Disabled because of crbug.com/109668.
-TEST_F(ProfileSyncServiceTest, DISABLED_CorruptDatabase) {
rlarocque 2012/06/04 20:07:09 Our test framework actually makes this really hard
- const char* nonesense = "not a database";
-
- FilePath temp_directory = profile_->GetPath().AppendASCII("Sync Data");
- FilePath sync_db_file = temp_directory.AppendASCII("SyncData.sqlite3");
-
- ASSERT_TRUE(file_util::CreateDirectory(temp_directory));
- ASSERT_NE(-1,
- file_util::WriteFile(sync_db_file, nonesense, strlen(nonesense)));
-
- // Initialize with HasSyncSetupCompleted() set to true and InitialSyncEnded
- // false. This is to model the scenario that would result when opening the
- // sync database fails.
- StartSyncServiceAndSetInitialSyncEnded(false, true, true, true, false, true);
-
- // The backend is not ready. Ensure the PSS knows this.
- EXPECT_FALSE(service_->sync_initialized());
-
- // Ensure we will be prepared to initialize a fresh DB next time.
- EXPECT_FALSE(service_->HasSyncSetupCompleted());
-}
-
} // namespace
} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698