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

Side by Side Diff: webkit/fileapi/mock_file_system_context.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/fileapi/mock_file_system_context.h"
6
7 #include "base/memory/scoped_vector.h"
8 #include "webkit/fileapi/external_mount_points.h"
9 #include "webkit/fileapi/file_system_context.h"
10 #include "webkit/fileapi/file_system_mount_point_provider.h"
11 #include "webkit/fileapi/file_system_task_runners.h"
12 #include "webkit/fileapi/mock_file_system_options.h"
13 #include "webkit/fileapi/test_mount_point_provider.h"
14 #include "webkit/quota/mock_special_storage_policy.h"
15
16 namespace fileapi {
17
18 FileSystemContext* CreateFileSystemContextForTesting(
19 quota::QuotaManagerProxy* quota_manager_proxy,
20 const base::FilePath& base_path) {
21 ScopedVector<FileSystemMountPointProvider> additional_providers;
22 additional_providers.push_back(
23 new TestMountPointProvider(
24 base::MessageLoopProxy::current(), base_path));
25 return new FileSystemContext(
26 FileSystemTaskRunners::CreateMockTaskRunners(),
27 ExternalMountPoints::CreateRefCounted().get(),
28 make_scoped_refptr(new quota::MockSpecialStoragePolicy()),
29 quota_manager_proxy,
30 additional_providers.Pass(),
31 base_path,
32 CreateAllowFileAccessOptions());
33 }
34
35 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/mock_file_system_context.h ('k') | webkit/fileapi/obfuscated_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698