OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/test/test_file_system_context.h" | 5 #include "storage/browser/test/test_file_system_context.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "content/public/test/mock_special_storage_policy.h" | |
12 #include "content/public/test/test_file_system_backend.h" | |
13 #include "content/public/test/test_file_system_options.h" | |
14 #include "storage/browser/fileapi/external_mount_points.h" | 11 #include "storage/browser/fileapi/external_mount_points.h" |
15 #include "storage/browser/fileapi/file_system_backend.h" | 12 #include "storage/browser/fileapi/file_system_backend.h" |
16 #include "storage/browser/fileapi/file_system_context.h" | 13 #include "storage/browser/fileapi/file_system_context.h" |
| 14 #include "storage/browser/test/mock_special_storage_policy.h" |
| 15 #include "storage/browser/test/test_file_system_backend.h" |
| 16 #include "storage/browser/test/test_file_system_options.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 storage::FileSystemContext* CreateFileSystemContextForTesting( | 20 storage::FileSystemContext* CreateFileSystemContextForTesting( |
21 storage::QuotaManagerProxy* quota_manager_proxy, | 21 storage::QuotaManagerProxy* quota_manager_proxy, |
22 const base::FilePath& base_path) { | 22 const base::FilePath& base_path) { |
23 std::vector<std::unique_ptr<storage::FileSystemBackend>> additional_providers; | 23 std::vector<std::unique_ptr<storage::FileSystemBackend>> additional_providers; |
24 additional_providers.push_back(base::MakeUnique<TestFileSystemBackend>( | 24 additional_providers.push_back(base::MakeUnique<TestFileSystemBackend>( |
25 base::ThreadTaskRunnerHandle::Get().get(), base_path)); | 25 base::ThreadTaskRunnerHandle::Get().get(), base_path)); |
26 return CreateFileSystemContextWithAdditionalProvidersForTesting( | 26 return CreateFileSystemContextWithAdditionalProvidersForTesting( |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 base::ThreadTaskRunnerHandle::Get().get(), | 66 base::ThreadTaskRunnerHandle::Get().get(), |
67 storage::ExternalMountPoints::CreateRefCounted().get(), | 67 storage::ExternalMountPoints::CreateRefCounted().get(), |
68 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), | 68 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), |
69 quota_manager_proxy, | 69 quota_manager_proxy, |
70 std::vector<std::unique_ptr<storage::FileSystemBackend>>(), | 70 std::vector<std::unique_ptr<storage::FileSystemBackend>>(), |
71 std::vector<storage::URLRequestAutoMountHandler>(), base_path, | 71 std::vector<storage::URLRequestAutoMountHandler>(), base_path, |
72 CreateIncognitoFileSystemOptions()); | 72 CreateIncognitoFileSystemOptions()); |
73 } | 73 } |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
OLD | NEW |