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 "content/public/test/test_file_system_context.h" |
6 | 6 |
7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
8 #include "content/public/test/mock_special_storage_policy.h" | 8 #include "content/public/test/mock_special_storage_policy.h" |
9 #include "content/public/test/test_file_system_backend.h" | 9 #include "content/public/test/test_file_system_backend.h" |
10 #include "content/public/test/test_file_system_options.h" | 10 #include "content/public/test/test_file_system_options.h" |
11 #include "webkit/browser/fileapi/external_mount_points.h" | 11 #include "storage/browser/fileapi/external_mount_points.h" |
12 #include "webkit/browser/fileapi/file_system_backend.h" | 12 #include "storage/browser/fileapi/file_system_backend.h" |
13 #include "webkit/browser/fileapi/file_system_context.h" | 13 #include "storage/browser/fileapi/file_system_context.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 storage::FileSystemContext* CreateFileSystemContextForTesting( | 17 storage::FileSystemContext* CreateFileSystemContextForTesting( |
18 storage::QuotaManagerProxy* quota_manager_proxy, | 18 storage::QuotaManagerProxy* quota_manager_proxy, |
19 const base::FilePath& base_path) { | 19 const base::FilePath& base_path) { |
20 ScopedVector<storage::FileSystemBackend> additional_providers; | 20 ScopedVector<storage::FileSystemBackend> additional_providers; |
21 additional_providers.push_back(new TestFileSystemBackend( | 21 additional_providers.push_back(new TestFileSystemBackend( |
22 base::MessageLoopProxy::current().get(), base_path)); | 22 base::MessageLoopProxy::current().get(), base_path)); |
23 return CreateFileSystemContextWithAdditionalProvidersForTesting( | 23 return CreateFileSystemContextWithAdditionalProvidersForTesting( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 storage::ExternalMountPoints::CreateRefCounted().get(), | 68 storage::ExternalMountPoints::CreateRefCounted().get(), |
69 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), | 69 make_scoped_refptr(new MockSpecialStoragePolicy()).get(), |
70 quota_manager_proxy, | 70 quota_manager_proxy, |
71 additional_providers.Pass(), | 71 additional_providers.Pass(), |
72 std::vector<storage::URLRequestAutoMountHandler>(), | 72 std::vector<storage::URLRequestAutoMountHandler>(), |
73 base_path, | 73 base_path, |
74 CreateIncognitoFileSystemOptions()); | 74 CreateIncognitoFileSystemOptions()); |
75 } | 75 } |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
OLD | NEW |