| 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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 8 #include "base/macros.h" |
| 5 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 6 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 7 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" | 11 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" |
| 8 #include "chrome/browser/chromeos/file_manager/file_watcher.h" | 12 #include "chrome/browser/chromeos/file_manager/file_watcher.h" |
| 9 #include "chrome/browser/chromeos/file_manager/mount_test_util.h" | 13 #include "chrome/browser/chromeos/file_manager/mount_test_util.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 11 #include "chrome/browser/extensions/extension_apitest.h" | 15 #include "chrome/browser/extensions/extension_apitest.h" |
| 12 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" | 16 #include "chrome/common/extensions/api/file_system_provider_capabilities/file_sy
stem_provider_capabilities_handler.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
| 14 #include "chrome/test/base/ui_test_utils.h" | 18 #include "chrome/test/base/ui_test_utils.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 32 const char* file_path; | 36 const char* file_path; |
| 33 const char* device_label; | 37 const char* device_label; |
| 34 const char* drive_label; | 38 const char* drive_label; |
| 35 const char* vendor_id; | 39 const char* vendor_id; |
| 36 const char* vendor_name; | 40 const char* vendor_name; |
| 37 const char* product_id; | 41 const char* product_id; |
| 38 const char* product_name; | 42 const char* product_name; |
| 39 const char* fs_uuid; | 43 const char* fs_uuid; |
| 40 const char* system_path_prefix; | 44 const char* system_path_prefix; |
| 41 chromeos::DeviceType device_type; | 45 chromeos::DeviceType device_type; |
| 42 uint64 size_in_bytes; | 46 uint64_t size_in_bytes; |
| 43 bool is_parent; | 47 bool is_parent; |
| 44 bool is_read_only; | 48 bool is_read_only; |
| 45 bool has_media; | 49 bool has_media; |
| 46 bool on_boot_device; | 50 bool on_boot_device; |
| 47 bool on_removable_device; | 51 bool on_removable_device; |
| 48 bool is_hidden; | 52 bool is_hidden; |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 struct TestMountPoint { | 55 struct TestMountPoint { |
| 52 std::string source_path; | 56 std::string source_path; |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 ->RegisterFileSystem( | 441 ->RegisterFileSystem( |
| 438 kLocalMountPointName, storage::kFileSystemTypeNativeLocal, | 442 kLocalMountPointName, storage::kFileSystemTypeNativeLocal, |
| 439 storage::FileSystemMountOption(), mount_point_dir)); | 443 storage::FileSystemMountOption(), mount_point_dir)); |
| 440 file_manager::VolumeManager::Get(browser()->profile()) | 444 file_manager::VolumeManager::Get(browser()->profile()) |
| 441 ->AddVolumeForTesting(mount_point_dir, file_manager::VOLUME_TYPE_TESTING, | 445 ->AddVolumeForTesting(mount_point_dir, file_manager::VOLUME_TYPE_TESTING, |
| 442 chromeos::DEVICE_TYPE_UNKNOWN, | 446 chromeos::DEVICE_TYPE_UNKNOWN, |
| 443 false /* read_only */); | 447 false /* read_only */); |
| 444 | 448 |
| 445 ASSERT_TRUE(RunComponentExtensionTest("file_browser/content_checksum_test")); | 449 ASSERT_TRUE(RunComponentExtensionTest("file_browser/content_checksum_test")); |
| 446 } | 450 } |
| OLD | NEW |