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