Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 1 | # Copyright 2024 The Chromium Authors |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/config/chromeos/ui_mode.gni") |
| 6 | |
| 7 | assert(is_chromeos_ash) |
| 8 | |
| 9 | static_library("fileapi") { |
| 10 | sources = [ |
| 11 | "copy_from_fd.cc", |
| 12 | "copy_from_fd.h", |
| 13 | "diversion_backend_delegate.cc", |
| 14 | "diversion_backend_delegate.h", |
| 15 | "diversion_file_manager.cc", |
| 16 | "diversion_file_manager.h", |
| 17 | "external_file_resolver.cc", |
| 18 | "external_file_resolver.h", |
| 19 | "external_file_url_loader_factory.cc", |
| 20 | "external_file_url_loader_factory.h", |
| 21 | "external_file_url_util.cc", |
| 22 | "external_file_url_util.h", |
| 23 | "fallback_copy_in_foreign_file.cc", |
| 24 | "fallback_copy_in_foreign_file.h", |
| 25 | "file_access_permissions.cc", |
| 26 | "file_access_permissions.h", |
| 27 | "file_accumulator.cc", |
| 28 | "file_accumulator.h", |
| 29 | "file_change_service.cc", |
| 30 | "file_change_service.h", |
| 31 | "file_change_service_factory.cc", |
| 32 | "file_change_service_factory.h", |
| 33 | "file_change_service_observer.h", |
| 34 | "file_system_backend.cc", |
| 35 | "file_system_backend.h", |
| 36 | "file_system_backend_delegate.h", |
| 37 | "mtp_file_system_backend_delegate.cc", |
| 38 | "mtp_file_system_backend_delegate.h", |
| 39 | "mtp_watcher_manager.cc", |
| 40 | "mtp_watcher_manager.h", |
| 41 | "observable_file_system_operation_impl.cc", |
| 42 | "observable_file_system_operation_impl.h", |
| 43 | "recent_arc_media_source.cc", |
| 44 | "recent_arc_media_source.h", |
| 45 | "recent_disk_source.cc", |
| 46 | "recent_disk_source.h", |
| 47 | "recent_drive_source.cc", |
| 48 | "recent_drive_source.h", |
| 49 | "recent_file.cc", |
| 50 | "recent_file.h", |
| 51 | "recent_model.cc", |
| 52 | "recent_model.h", |
| 53 | "recent_model_factory.cc", |
| 54 | "recent_model_factory.h", |
| 55 | "recent_source.cc", |
| 56 | "recent_source.h", |
| 57 | ] |
| 58 | |
| 59 | public_deps = [ |
| 60 | "//ash/components/arc/mojom", |
| 61 | "//base", |
| 62 | "//base:i18n", |
Eriko Kurimoto | c334f72 | 2024-07-26 03:33:55 | [diff] [blame] | 63 | "//chrome/browser:browser_public_dependencies", |
Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 64 | "//chrome/browser/profiles:profile", |
| 65 | "//chromeos/ash/components/drivefs/mojom", |
| 66 | "//components/account_id", |
| 67 | "//components/drive", |
| 68 | "//components/file_access", |
| 69 | "//components/keyed_service/core", |
| 70 | "//mojo/public/cpp/bindings", |
| 71 | "//net", |
| 72 | "//services/network/public/cpp", |
| 73 | "//services/network/public/mojom", |
| 74 | "//storage/browser", |
| 75 | "//storage/common", |
| 76 | "//url", |
| 77 | ] |
| 78 | |
| 79 | deps = [ |
| 80 | "//ash/constants", |
| 81 | "//ash/webui/file_manager:constants", |
| 82 | "//build:buildflag_header_h", |
| 83 | "//chrome/browser:browser_process", |
Hidehiko Abe | 82c55fb | 2024-07-23 04:55:50 | [diff] [blame] | 84 | "//chrome/browser/ash/drive", |
Di Wu | 3ddaf988 | 2024-07-12 01:07:26 | [diff] [blame] | 85 | "//chrome/browser/ash/profiles", |
Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 86 | "//chrome/common:common", |
| 87 | "//chrome/common/extensions/api", |
| 88 | "//chromeos/ash/components/dbus/cros_disks", |
| 89 | "//chromeos/ash/components/drivefs", |
| 90 | "//components/user_manager", |
| 91 | "//content/public/browser", |
| 92 | "//extensions/browser/api/file_handlers", |
| 93 | "//extensions/common", |
| 94 | "//mojo/public/c/system:headers", |
| 95 | "//mojo/public/cpp/system", |
| 96 | "//services/network/public/cpp:cpp_base", |
| 97 | "//services/network/public/mojom:url_loader_base", |
| 98 | "//third_party/blink/public/common:headers", |
| 99 | "//ui/file_manager/base/gn:file_types_data_cpp", |
| 100 | ] |
| 101 | } |
| 102 | |
| 103 | source_set("unit_tests") { |
| 104 | testonly = true |
| 105 | |
| 106 | sources = [ |
| 107 | "copy_from_fd_unittest.cc", |
| 108 | "diversion_backend_delegate_unittest.cc", |
| 109 | "diversion_file_manager_unittest.cc", |
| 110 | "external_file_url_loader_factory_unittest.cc", |
| 111 | "external_file_url_util_unittest.cc", |
| 112 | "fallback_copy_in_foreign_file_unittest.cc", |
| 113 | "file_access_permissions_unittest.cc", |
| 114 | "file_accumulator_unittest.cc", |
| 115 | "file_change_service_unittest.cc", |
| 116 | "file_system_backend_unittest.cc", |
| 117 | "recent_arc_media_source_unittest.cc", |
| 118 | "recent_disk_source_unittest.cc", |
| 119 | "recent_model_unittest.cc", |
| 120 | "recent_source_unittest.cc", |
| 121 | ] |
| 122 | |
| 123 | deps = [ |
| 124 | "//ash/components/arc:arc_test_support", |
| 125 | "//ash/components/arc:notification_test_support", |
| 126 | "//ash/components/arc/mojom", |
| 127 | "//ash/components/arc/session", |
| 128 | "//base", |
| 129 | "//base/test:test_support", |
| 130 | "//chrome/browser", |
Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 131 | "//chrome/browser/ash/arc", |
| 132 | "//chrome/browser/ash/arc/fileapi", |
| 133 | "//chrome/browser/ash/file_manager", |
Eriko Kurimoto | 74f8f6b | 2024-07-17 02:46:19 | [diff] [blame] | 134 | "//chrome/browser/ash/file_system_provider", |
| 135 | "//chrome/browser/ash/file_system_provider:test_support", |
Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 136 | "//chrome/browser/ash/fileapi", |
| 137 | "//chrome/browser/ash/fileapi/test:test_support", |
Georg Neis | cbe35ac | 2024-08-14 06:12:06 | [diff] [blame] | 138 | "//chrome/browser/ash/login/users:test_support", |
Yuta Hijikata | c8891f6f | 2024-07-08 08:23:26 | [diff] [blame] | 139 | "//chrome/browser/profiles:profile", |
| 140 | "//chrome/test:test_support", |
| 141 | "//chromeos/ash/components/dbus/cros_disks", |
| 142 | "//components/drive", |
| 143 | "//components/keyed_service/content", |
| 144 | "//components/user_manager", |
| 145 | "//content/public/browser", |
| 146 | "//content/test:test_support", |
| 147 | "//extensions/common", |
| 148 | "//mojo/public/cpp/system", |
| 149 | "//mojo/public/cpp/test_support:test_utils", |
| 150 | "//net", |
| 151 | "//net:test_support", |
| 152 | "//net/traffic_annotation:test_support", |
| 153 | "//services/network:test_support", |
| 154 | "//services/network/public/cpp:cpp_base", |
| 155 | "//storage/browser", |
| 156 | "//storage/browser:test_support", |
| 157 | "//storage/common", |
| 158 | "//testing/gmock", |
| 159 | "//testing/gtest", |
| 160 | "//third_party/blink/public/common:headers", |
| 161 | "//url", |
| 162 | ] |
| 163 | } |