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

Side by Side Diff: webkit/fileapi/local_file_system_test_helper.h

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_
6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 11 matching lines...) Expand all
22 class FilePath; 22 class FilePath;
23 23
24 namespace fileapi { 24 namespace fileapi {
25 25
26 class FileSystemContext; 26 class FileSystemContext;
27 class FileSystemFileUtil; 27 class FileSystemFileUtil;
28 class FileSystemOperationContext; 28 class FileSystemOperationContext;
29 class LocalFileSystemOperation; 29 class LocalFileSystemOperation;
30 30
31 // Filesystem test helper class that encapsulates test environment for 31 // Filesystem test helper class that encapsulates test environment for
32 // a given {origin, type} pair. 32 // a given {origin, type} pair. This helper only works for sandboxed
33 // file systems (Temporary, Persistent or Test types).
33 class LocalFileSystemTestOriginHelper { 34 class LocalFileSystemTestOriginHelper {
34 public: 35 public:
35 LocalFileSystemTestOriginHelper(const GURL& origin, FileSystemType type); 36 LocalFileSystemTestOriginHelper(const GURL& origin, FileSystemType type);
36 LocalFileSystemTestOriginHelper(); 37 LocalFileSystemTestOriginHelper();
37 ~LocalFileSystemTestOriginHelper(); 38 ~LocalFileSystemTestOriginHelper();
38 39
39 void SetUp(const FilePath& base_dir, FileSystemFileUtil* file_util); 40 void SetUp(const FilePath& base_dir, FileSystemFileUtil* file_util);
40 // If you want to use more than one LocalFileSystemTestOriginHelper in 41 // If you want to use more than one LocalFileSystemTestOriginHelper in
41 // a single base directory, they have to share a context, so that they don't 42 // a single base directory, they have to share a context, so that they don't
42 // have multiple databases fighting over the lock to the origin directory 43 // have multiple databases fighting over the lock to the origin directory
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 private: 97 private:
97 scoped_refptr<FileSystemContext> file_system_context_; 98 scoped_refptr<FileSystemContext> file_system_context_;
98 const GURL origin_; 99 const GURL origin_;
99 const FileSystemType type_; 100 const FileSystemType type_;
100 FileSystemFileUtil* file_util_; 101 FileSystemFileUtil* file_util_;
101 }; 102 };
102 103
103 } // namespace fileapi 104 } // namespace fileapi
104 105
105 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_ 106 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.cc ('k') | webkit/fileapi/local_file_system_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698