| 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/scoped_vector.h" | 9 #include "base/memory/scoped_vector.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 ScopedVector<storage::FileSystemBackend> additional_providers; | 23 ScopedVector<storage::FileSystemBackend> additional_providers; |
| 24 additional_providers.push_back(new TestFileSystemBackend( | 24 additional_providers.push_back(new TestFileSystemBackend( |
| 25 base::ThreadTaskRunnerHandle::Get().get(), base_path)); | 25 base::ThreadTaskRunnerHandle::Get().get(), base_path)); |
| 26 return CreateFileSystemContextWithAdditionalProvidersForTesting( | 26 return CreateFileSystemContextWithAdditionalProvidersForTesting( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 base::ThreadTaskRunnerHandle::Get().get(), | 64 base::ThreadTaskRunnerHandle::Get().get(), |
| 65 base::ThreadTaskRunnerHandle::Get().get(), | 65 base::ThreadTaskRunnerHandle::Get().get(), |
| 66 storage::ExternalMountPoints::CreateRefCounted().get(), | 66 storage::ExternalMountPoints::CreateRefCounted().get(), |
| 67 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), | 67 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), |
| 68 quota_manager_proxy, std::move(additional_providers), | 68 quota_manager_proxy, std::move(additional_providers), |
| 69 std::vector<storage::URLRequestAutoMountHandler>(), base_path, | 69 std::vector<storage::URLRequestAutoMountHandler>(), base_path, |
| 70 CreateIncognitoFileSystemOptions()); | 70 CreateIncognitoFileSystemOptions()); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace content | 73 } // namespace content |
| OLD | NEW |