diff options
author | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 20:54:51 +0000 |
---|---|---|
committer | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-04 20:54:51 +0000 |
commit | ea22bba133092ff324b95e3d3a9a9bf96f9f1613 (patch) | |
tree | 4d85fec8a15f6f14b8efa509005720193f8f5c3d /content/test/fileapi_test_file_set.h | |
parent | 4e216ba7218c5a664411c7fc3f97083547313840 (diff) | |
download | chromium_src-ea22bba133092ff324b95e3d3a9a9bf96f9f1613.zip chromium_src-ea22bba133092ff324b95e3d3a9a9bf96f9f1613.tar.gz chromium_src-ea22bba133092ff324b95e3d3a9a9bf96f9f1613.tar.bz2 |
Move test_file_set to content/test/
BUG=338338
TBR=darin@chromium.org
Review URL: https://codereview.chromium.org/183343002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/fileapi_test_file_set.h')
-rw-r--r-- | content/test/fileapi_test_file_set.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/content/test/fileapi_test_file_set.h b/content/test/fileapi_test_file_set.h new file mode 100644 index 0000000..4a790c3 --- /dev/null +++ b/content/test/fileapi_test_file_set.h @@ -0,0 +1,40 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ +#define CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_ + +#include <set> + +#include "base/files/file_path.h" + +// Common test data structures and test cases. + +namespace fileapi { +class FileSystemFileUtil; +} + +namespace content { + +struct FileSystemTestCaseRecord { + bool is_directory; + const base::FilePath::CharType path[64]; + int64 data_file_size; +}; + +extern const FileSystemTestCaseRecord kRegularFileSystemTestCases[]; +extern const size_t kRegularFileSystemTestCaseSize; + +size_t GetRegularFileSystemTestCaseSize(); + +// Creates one file or directory specified by |record|. +void SetUpOneFileSystemTestCase(const base::FilePath& root_path, + const FileSystemTestCaseRecord& record); + +// Creates the files and directories specified in kRegularTestCases. +void SetUpRegularFileSystemTestCases(const base::FilePath& root_path); + +} // namespace content + +#endif // CONTENT_TEST_TEST_FILEAPI_FILE_SET_H_ |