| 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 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "storage/browser/fileapi/file_system_context.h" | 10 #include "storage/browser/fileapi/file_system_context.h" |
| 11 | 11 |
| 12 namespace storage { | 12 namespace storage { |
| 13 class QuotaManagerProxy; | 13 class QuotaManagerProxy; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace storage { | 16 namespace storage { |
| 17 class FileSystemBackend; | 17 class FileSystemBackend; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 storage::FileSystemContext* CreateFileSystemContextForTesting( | 22 storage::FileSystemContext* CreateFileSystemContextForTesting( |
| 23 storage::QuotaManagerProxy* quota_manager_proxy, | 23 storage::QuotaManagerProxy* quota_manager_proxy, |
| 24 const base::FilePath& base_path); | 24 const base::FilePath& base_path); |
| 25 | 25 |
| 26 // The caller is responsible for including TestFileSystemBackend in | 26 // The caller is responsible for including TestFileSystemBackend in |
| 27 // |additional_providers| if needed. | 27 // |additional_providers| if needed. |
| 28 storage::FileSystemContext* | 28 storage::FileSystemContext* |
| 29 CreateFileSystemContextWithAdditionalProvidersForTesting( | 29 CreateFileSystemContextWithAdditionalProvidersForTesting( |
| 30 storage::QuotaManagerProxy* quota_manager_proxy, | 30 storage::QuotaManagerProxy* quota_manager_proxy, |
| 31 ScopedVector<storage::FileSystemBackend> additional_providers, | 31 std::vector<std::unique_ptr<storage::FileSystemBackend>> |
| 32 const base::FilePath& base_path); | 32 additional_providers, |
| 33 const base::FilePath& base_path); |
| 33 | 34 |
| 34 storage::FileSystemContext* CreateFileSystemContextWithAutoMountersForTesting( | 35 storage::FileSystemContext* CreateFileSystemContextWithAutoMountersForTesting( |
| 35 storage::QuotaManagerProxy* quota_manager_proxy, | 36 storage::QuotaManagerProxy* quota_manager_proxy, |
| 36 ScopedVector<storage::FileSystemBackend> additional_providers, | 37 std::vector<std::unique_ptr<storage::FileSystemBackend>> |
| 38 additional_providers, |
| 37 const std::vector<storage::URLRequestAutoMountHandler>& auto_mounters, | 39 const std::vector<storage::URLRequestAutoMountHandler>& auto_mounters, |
| 38 const base::FilePath& base_path); | 40 const base::FilePath& base_path); |
| 39 | 41 |
| 40 storage::FileSystemContext* CreateIncognitoFileSystemContextForTesting( | 42 storage::FileSystemContext* CreateIncognitoFileSystemContextForTesting( |
| 41 storage::QuotaManagerProxy* quota_manager_proxy, | 43 storage::QuotaManagerProxy* quota_manager_proxy, |
| 42 const base::FilePath& base_path); | 44 const base::FilePath& base_path); |
| 43 | 45 |
| 44 } // namespace content | 46 } // namespace content |
| 45 | 47 |
| 46 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ | 48 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_ |
| OLD | NEW |