IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / public / test / test_file_system_context.h
blob5539c4b0de1171ea12d6f617533eb21f01b7312c
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_
8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h"
11 namespace quota {
12 class QuotaManagerProxy;
13 class SpecialStoragePolicy;
16 namespace fileapi {
18 class FileSystemContext;
19 class FileSystemBackend;
21 FileSystemContext* CreateFileSystemContextForTesting(
22 quota::QuotaManagerProxy* quota_manager_proxy,
23 const base::FilePath& base_path);
25 // The caller is responsible for including TestFileSystemBackend in
26 // |additional_providers| if needed.
27 FileSystemContext* CreateFileSystemContextWithAdditionalProvidersForTesting(
28 quota::QuotaManagerProxy* quota_manager_proxy,
29 ScopedVector<FileSystemBackend> additional_providers,
30 const base::FilePath& base_path);
32 FileSystemContext* CreateIncognitoFileSystemContextForTesting(
33 quota::QuotaManagerProxy* quota_manager_proxy,
34 const base::FilePath& base_path);
36 } // namespace fileapi
38 #endif // CONTENT_PUBLIC_TEST_TEST_FILE_SYSTEM_CONTEXT_H_