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/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/test/base/ui_test_utils.h" | 32 #include "chrome/test/base/ui_test_utils.h" |
33 #include "content/public/browser/browser_context.h" | 33 #include "content/public/browser/browser_context.h" |
34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/test/test_utils.h" | 36 #include "content/public/test/test_utils.h" |
37 #include "webkit/browser/fileapi/external_mount_points.h" | 37 #include "webkit/browser/fileapi/external_mount_points.h" |
38 | 38 |
39 // Tests for access to external file systems (as defined in | 39 // Tests for access to external file systems (as defined in |
40 // webkit/fileapi/file_system_types.h) from extensions with fileBrowserPrivate | 40 // webkit/common/fileapi/file_system_types.h) from extensions with |
41 // and fileBrowserHandler extension permissions. | 41 // fileBrowserPrivate and fileBrowserHandler extension permissions. |
42 // The tests cover following external file system types: | 42 // The tests cover following external file system types: |
43 // - local (kFileSystemTypeLocalNative): a local file system on which files are | 43 // - local (kFileSystemTypeLocalNative): a local file system on which files are |
44 // accessed using native local path. | 44 // accessed using native local path. |
45 // - restricted (kFileSystemTypeRestrictedLocalNative): a *read-only* local file | 45 // - restricted (kFileSystemTypeRestrictedLocalNative): a *read-only* local file |
46 // system which can only be accessed by extensions that have full access to | 46 // system which can only be accessed by extensions that have full access to |
47 // external file systems (i.e. extensions with fileBrowserPrivate permission). | 47 // external file systems (i.e. extensions with fileBrowserPrivate permission). |
48 // - drive (kFileSystemTypeDrive): a file system that provides access to Google | 48 // - drive (kFileSystemTypeDrive): a file system that provides access to Google |
49 // Drive. | 49 // Drive. |
50 // | 50 // |
51 // The tests cover following scenarios: | 51 // The tests cover following scenarios: |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) { | 517 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) { |
518 fake_drive_service_->set_default_max_results(1); | 518 fake_drive_service_->set_default_max_results(1); |
519 EXPECT_TRUE(RunFileSystemExtensionApiTest( | 519 EXPECT_TRUE(RunFileSystemExtensionApiTest( |
520 "file_browser/handler_test_runner", | 520 "file_browser/handler_test_runner", |
521 FILE_PATH_LITERAL("manifest_v2.json"), | 521 FILE_PATH_LITERAL("manifest_v2.json"), |
522 "file_browser/app_file_handler", | 522 "file_browser/app_file_handler", |
523 FLAGS_USE_FILE_HANDLER)) << message_; | 523 FLAGS_USE_FILE_HANDLER)) << message_; |
524 } | 524 } |
525 | 525 |
526 } // namespace | 526 } // namespace |
OLD | NEW |