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

Unified Diff: content/public/test/test_file_system_context.cc

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS Created 6 years, 9 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 | « content/public/test/test_file_system_context.h ('k') | webkit/browser/fileapi/external_mount_points.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_system_context.cc
diff --git a/content/public/test/test_file_system_context.cc b/content/public/test/test_file_system_context.cc
index d09bbd1a23ba7a9f56d7fda9d063530dd952730b..aa954de5ced30ff5a6ce9e894b6a17eb15ce6d16 100644
--- a/content/public/test/test_file_system_context.cc
+++ b/content/public/test/test_file_system_context.cc
@@ -36,6 +36,25 @@ CreateFileSystemContextWithAdditionalProvidersForTesting(
make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
quota_manager_proxy,
additional_providers.Pass(),
+ std::vector<fileapi::URLRequestAutoMountHandler>(),
+ base_path,
+ CreateAllowFileAccessOptions());
+}
+
+fileapi::FileSystemContext*
+CreateFileSystemContextWithAutoMountersForTesting(
+ quota::QuotaManagerProxy* quota_manager_proxy,
+ ScopedVector<fileapi::FileSystemBackend> additional_providers,
+ const std::vector<fileapi::URLRequestAutoMountHandler>& auto_mounters,
+ const base::FilePath& base_path) {
+ return new fileapi::FileSystemContext(
+ base::MessageLoopProxy::current().get(),
+ base::MessageLoopProxy::current().get(),
+ fileapi::ExternalMountPoints::CreateRefCounted().get(),
+ make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
+ quota_manager_proxy,
+ additional_providers.Pass(),
+ auto_mounters,
base_path,
CreateAllowFileAccessOptions());
}
@@ -51,6 +70,7 @@ fileapi::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
make_scoped_refptr(new quota::MockSpecialStoragePolicy()).get(),
quota_manager_proxy,
additional_providers.Pass(),
+ std::vector<fileapi::URLRequestAutoMountHandler>(),
base_path,
CreateIncognitoFileSystemOptions());
}
« no previous file with comments | « content/public/test/test_file_system_context.h ('k') | webkit/browser/fileapi/external_mount_points.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698