Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: content/test/fileapi_test_file_set.h

Issue 2819363003: Move browser-side File API unittests next to the files they cover. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/fileapi_test_file_set.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_
6 #define CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include <set>
12
13 #include "base/files/file_path.h"
14
15 // Common test data structures and test cases.
16
17 namespace content {
18
19 struct FileSystemTestCaseRecord {
20 bool is_directory;
21 const base::FilePath::CharType path[64];
22 int64_t data_file_size;
23 };
24
25 extern const FileSystemTestCaseRecord kRegularFileSystemTestCases[];
26 extern const size_t kRegularFileSystemTestCaseSize;
27
28 size_t GetRegularFileSystemTestCaseSize();
29
30 // Creates one file or directory specified by |record|.
31 void SetUpOneFileSystemTestCase(const base::FilePath& root_path,
32 const FileSystemTestCaseRecord& record);
33
34 // Creates the files and directories specified in kRegularTestCases.
35 void SetUpRegularFileSystemTestCases(const base::FilePath& root_path);
36
37 } // namespace content
38
39 #endif // CONTENT_TEST_FILEAPI_TEST_FILE_SET_H_
OLDNEW
« no previous file with comments | « content/test/BUILD.gn ('k') | content/test/fileapi_test_file_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698