| 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 "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 10 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 10 #include "chrome/browser/chromeos/extensions/file_manager/drive_test_util.h" | 11 #include "chrome/browser/chromeos/extensions/file_manager/drive_test_util.h" |
| 11 #include "chrome/browser/drive/fake_drive_service.h" | 12 #include "chrome/browser/drive/fake_drive_service.h" |
| 12 #include "chrome/browser/extensions/extension_apitest.h" | 13 #include "chrome/browser/extensions/extension_apitest.h" |
| 13 #include "chrome/browser/google_apis/test_util.h" | 14 #include "chrome/browser/google_apis/test_util.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | |
| 17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
| 18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 19 #include "content/public/test/test_utils.h" | 19 #include "content/public/test/test_utils.h" |
| 20 #include "webkit/browser/fileapi/external_mount_points.h" | 20 #include "webkit/browser/fileapi/external_mount_points.h" |
| 21 | 21 |
| 22 // Tests for access to external file systems (as defined in | 22 // Tests for access to external file systems (as defined in |
| 23 // webkit/common/fileapi/file_system_types.h) from extensions with | 23 // webkit/common/fileapi/file_system_types.h) from extensions with |
| 24 // fileBrowserPrivate and fileBrowserHandler extension permissions. | 24 // fileBrowserPrivate and fileBrowserHandler extension permissions. |
| 25 // The tests cover following external file system types: | 25 // The tests cover following external file system types: |
| 26 // - local (kFileSystemTypeLocalNative): a local file system on which files are | 26 // - local (kFileSystemTypeLocalNative): a local file system on which files are |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) { | 425 IN_PROC_BROWSER_TEST_F(DriveFileSystemExtensionApiTest, AppFileHandler) { |
| 426 fake_drive_service_->set_default_max_results(1); | 426 fake_drive_service_->set_default_max_results(1); |
| 427 EXPECT_TRUE(RunFileSystemExtensionApiTest( | 427 EXPECT_TRUE(RunFileSystemExtensionApiTest( |
| 428 "file_browser/handler_test_runner", | 428 "file_browser/handler_test_runner", |
| 429 FILE_PATH_LITERAL("manifest.json"), | 429 FILE_PATH_LITERAL("manifest.json"), |
| 430 "file_browser/app_file_handler", | 430 "file_browser/app_file_handler", |
| 431 FLAGS_USE_FILE_HANDLER)) << message_; | 431 FLAGS_USE_FILE_HANDLER)) << message_; |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace | 434 } // namespace |
| OLD | NEW |