| OLD | NEW |
| 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 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // - local (kFileSystemTypeLocalNative): a local file system on which files are | 37 // - local (kFileSystemTypeLocalNative): a local file system on which files are |
| 38 // accessed using native local path. | 38 // accessed using native local path. |
| 39 // - restricted (kFileSystemTypeRestrictedLocalNative): a *read-only* local file | 39 // - restricted (kFileSystemTypeRestrictedLocalNative): a *read-only* local file |
| 40 // system which can only be accessed by extensions that have full access to | 40 // system which can only be accessed by extensions that have full access to |
| 41 // external file systems (i.e. extensions with fileManagerPrivate permission). | 41 // external file systems (i.e. extensions with fileManagerPrivate permission). |
| 42 // - drive (kFileSystemTypeDrive): a file system that provides access to Google | 42 // - drive (kFileSystemTypeDrive): a file system that provides access to Google |
| 43 // Drive. | 43 // Drive. |
| 44 // | 44 // |
| 45 // The tests cover following scenarios: | 45 // The tests cover following scenarios: |
| 46 // - Performing file system operations on external file systems from an | 46 // - Performing file system operations on external file systems from an |
| 47 // extension with fileManagerPrivate permission (i.e. a file browser | 47 // app with fileManagerPrivate permission (i.e. Files.app). |
| 48 // extension). | |
| 49 // - Performing read/write operations from file handler extensions. These | 48 // - Performing read/write operations from file handler extensions. These |
| 50 // extensions need a file browser extension to give them permissions to access | 49 // extensions need a file browser extension to give them permissions to access |
| 51 // files. This also includes file handler extensions in filesystem API. | 50 // files. This also includes file handler extensions in filesystem API. |
| 52 // - Observing directory changes from a file browser extension (using | 51 // - Observing directory changes from a file browser extension (using |
| 53 // fileManagerPrivate API). | 52 // fileManagerPrivate API). |
| 54 // - Doing searches on drive file system from file browser extension (using | 53 // - Doing searches on drive file system from file browser extension (using |
| 55 // fileManagerPrivate API). | 54 // fileManagerPrivate API). |
| 56 | 55 |
| 57 using drive::DriveIntegrationServiceFactory; | 56 using drive::DriveIntegrationServiceFactory; |
| 58 using extensions::Extension; | 57 using extensions::Extension; |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 AppFileHandlerMulti) { | 799 AppFileHandlerMulti) { |
| 801 EXPECT_TRUE( | 800 EXPECT_TRUE( |
| 802 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", | 801 RunFileSystemExtensionApiTest("file_browser/app_file_handler_multi", |
| 803 FILE_PATH_LITERAL("manifest.json"), | 802 FILE_PATH_LITERAL("manifest.json"), |
| 804 "", | 803 "", |
| 805 FLAGS_NONE)) | 804 FLAGS_NONE)) |
| 806 << message_; | 805 << message_; |
| 807 } | 806 } |
| 808 } // namespace | 807 } // namespace |
| 809 } // namespace file_manager | 808 } // namespace file_manager |
| OLD | NEW |