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

Unified Diff: chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc

Issue 23856002: SyncFS: Support resolveLocalFileSystemURL on SyncFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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_file_system/syncable_file_system_util_unittest.cc
diff --git a/chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc b/chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc
index 583bfe86c46dd8d5278d714a1def3e739605ad68..3cb27ec3bf56f91e5b400ffd2a1c894b9442783b 100644
--- a/chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc
+++ b/chrome/browser/sync_file_system/syncable_file_system_util_unittest.cc
@@ -111,43 +111,6 @@ TEST(SyncableFileSystemUtilTest,
RevokeSyncableFileSystem();
}
-TEST(SyncableFileSystemUtilTest, SerializeBeforeOpenFileSystem) {
- ScopedEnableSyncFSDirectoryOperation enable_directory_operation_;
- const std::string serialized = kSyncableFileSystemRootURI +
- CreateNormalizedFilePath(kPath).AsUTF8Unsafe();
- FileSystemURL deserialized;
- base::MessageLoop message_loop;
-
- // Setting up a full syncable filesystem environment.
- CannedSyncableFileSystem file_system(GURL(kOrigin),
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get());
- file_system.SetUp();
- scoped_refptr<LocalFileSyncContext> sync_context =
- new LocalFileSyncContext(base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get());
-
- // Before calling initialization we would not be able to get a valid
- // deserialized URL.
- EXPECT_FALSE(DeserializeSyncableFileSystemURL(serialized, &deserialized));
- EXPECT_FALSE(deserialized.is_valid());
-
- ASSERT_EQ(sync_file_system::SYNC_STATUS_OK,
- file_system.MaybeInitializeFileSystemContext(sync_context.get()));
-
- // After initialization this should be ok (even before opening the file
- // system).
- EXPECT_TRUE(DeserializeSyncableFileSystemURL(serialized, &deserialized));
- EXPECT_TRUE(deserialized.is_valid());
-
- // Shutting down.
- file_system.TearDown();
- RevokeSyncableFileSystem();
- sync_context->ShutdownOnUIThread();
- sync_context = NULL;
- base::MessageLoop::current()->RunUntilIdle();
-}
-
TEST(SyncableFileSystemUtilTest, SyncableFileSystemURL_IsParent) {
RegisterSyncableFileSystem();
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service_factory.cc ('k') | content/browser/fileapi/fileapi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698