1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_TEST_FILE_SET_H_
6 #define WEBKIT_FILEAPI_TEST_FILE_SET_H_
10 #include "base/file_path.h"
12 // Common test data structures and test cases.
16 class FileSystemFileUtil
;
20 struct TestCaseRecord
{
22 const FilePath::CharType path
[64];
26 extern const TestCaseRecord kRegularTestCases
[];
27 extern const size_t kRegularTestCaseSize
;
29 size_t GetRegularTestCaseSize();
31 // Creates one file or directory specified by |record|.
32 void SetUpOneTestCase(const FilePath
& root_path
, const TestCaseRecord
& record
);
34 // Creates the files and directories specified in kRegularTestCases.
35 void SetUpRegularTestCases(const FilePath
& root_path
);
39 } // namespace fileapi
41 #endif // WEBKIT_FILEAPI_TEST_FILE_SET_H_