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

Unified Diff: content/public/test/test_file_system_backend.h

Issue 549413003: [ew] Move operation observers from QuotaUtil to FileSystemBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 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: content/public/test/test_file_system_backend.h
diff --git a/content/public/test/test_file_system_backend.h b/content/public/test/test_file_system_backend.h
index 532a2add130fafc20ad439c9aced33efe2420a0d..36b6f2062142289cb4a031ea4d1489115a74a729 100644
--- a/content/public/test/test_file_system_backend.h
+++ b/content/public/test/test_file_system_backend.h
@@ -64,14 +64,18 @@ class TestFileSystemBackend : public storage::FileSystemBackend {
int64 offset,
storage::FileSystemContext* context) const OVERRIDE;
virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
+ virtual const storage::UpdateObserverList* GetUpdateObservers(
+ storage::FileSystemType type) const OVERRIDE;
+ virtual const storage::ChangeObserverList* GetChangeObservers(
+ storage::FileSystemType type) const OVERRIDE;
+ virtual const storage::AccessObserverList* GetAccessObservers(
+ storage::FileSystemType type) const OVERRIDE;
// Initialize the CopyOrMoveFileValidatorFactory. Invalid to call more than
// once.
void InitializeCopyOrMoveFileValidatorFactory(
scoped_ptr<storage::CopyOrMoveFileValidatorFactory> factory);
- const storage::UpdateObserverList* GetUpdateObservers(
- storage::FileSystemType type) const;
void AddFileChangeObserver(storage::FileChangeObserver* observer);
// For CopyOrMoveFileValidatorFactory testing. Once it's set to true
@@ -89,6 +93,8 @@ class TestFileSystemBackend : public storage::FileSystemBackend {
scoped_ptr<storage::AsyncFileUtilAdapter> file_util_;
scoped_ptr<storage::WatcherManager> watcher_manager_;
scoped_ptr<QuotaUtil> quota_util_;
+ storage::UpdateObserverList update_observers_;
+ storage::ChangeObserverList change_observers_;
bool require_copy_or_move_validator_;
scoped_ptr<storage::CopyOrMoveFileValidatorFactory>
« no previous file with comments | « content/public/test/sandbox_file_system_test_helper.cc ('k') | content/public/test/test_file_system_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698