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

Unified Diff: webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lazy initialization Created 7 years, 5 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: webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc
diff --git a/webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc b/webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc
index 43693310005fd94eb38f2afc490a0114b7a3b472..d774aaa17d5a51d8f5dd1af25b0e682fdff07bc2 100644
--- a/webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc
+++ b/webkit/browser/fileapi/syncable/local_file_sync_context_unittest.cc
@@ -23,6 +23,7 @@
#include "webkit/browser/fileapi/syncable/file_change.h"
#include "webkit/browser/fileapi/syncable/local_file_change_tracker.h"
#include "webkit/browser/fileapi/syncable/sync_file_metadata.h"
+#include "webkit/browser/fileapi/syncable/sync_file_system_backend.h"
#include "webkit/browser/fileapi/syncable/sync_status_code.h"
#include "webkit/browser/fileapi/syncable/syncable_file_system_util.h"
@@ -228,16 +229,14 @@ TEST_F(LocalFileSyncContextTest, InitializeFileSystemContext) {
// Make sure everything's set up for file_system to be able to handle
// syncable file system operations.
- EXPECT_TRUE(file_system.file_system_context()->sync_context() != NULL);
- EXPECT_TRUE(file_system.file_system_context()->change_tracker() != NULL);
- EXPECT_EQ(sync_context_.get(),
- file_system.file_system_context()->sync_context());
+ EXPECT_TRUE(file_system.backend()->sync_context() != NULL);
+ EXPECT_TRUE(file_system.backend()->change_tracker() != NULL);
+ EXPECT_EQ(sync_context_.get(), file_system.backend()->sync_context());
// Calling MaybeInitialize for the same context multiple times must be ok.
EXPECT_EQ(SYNC_STATUS_OK,
file_system.MaybeInitializeFileSystemContext(sync_context_.get()));
- EXPECT_EQ(sync_context_.get(),
- file_system.file_system_context()->sync_context());
+ EXPECT_EQ(sync_context_.get(), file_system.backend()->sync_context());
// Opens the file_system, perform some operation and see if the change tracker
// correctly captures the change.

Powered by Google App Engine
This is Rietveld 408576698