[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / content / test / fileapi_test_file_set.h
blobdc513352bd2c60ab8ccaa468050bf26e76475d5a
1 // Copyright 2014 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_TEST_FILEAPI_TEST_FILE_SET_H_
6 #define CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_
8 #include <set>
10 #include "base/files/file_path.h"
12 // Common test data structures and test cases.
14 namespace storage {
15 class FileSystemFileUtil;
18 namespace content {
20 struct FileSystemTestCaseRecord {
21 bool is_directory;
22 const base::FilePath::CharType path[64];
23 int64 data_file_size;
26 extern const FileSystemTestCaseRecord kRegularFileSystemTestCases[];
27 extern const size_t kRegularFileSystemTestCaseSize;
29 size_t GetRegularFileSystemTestCaseSize();
31 // Creates one file or directory specified by |record|.
32 void SetUpOneFileSystemTestCase(const base::FilePath& root_path,
33 const FileSystemTestCaseRecord& record);
35 // Creates the files and directories specified in kRegularTestCases.
36 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path);
38 } // namespace content
40 #endif // CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_