blob: 1bf035bef0684932e21447adab40912e56262de3 [file] [log] [blame]
[email protected]743530f2014-06-12 19:38:501# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
James Cook209256f2018-12-07 18:40:505import("//build/buildflag_header.gni")
Ben Pastenec60bf5022018-05-04 01:10:336import("//build/config/chromeos/rules.gni")
mukai6ba73552014-10-09 19:05:177import("//build/config/ui.gni")
Lutz Justen09c943a2018-04-13 01:49:198import("//testing/libfuzzer/fuzzer_test.gni")
qsrfb5251d12015-01-21 15:57:229import("//testing/test.gni")
[email protected]743530f2014-06-12 19:38:5010import("//third_party/protobuf/proto_library.gni")
11
A Olsen94579842018-10-10 19:22:3112assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")
mukai327e5f52014-10-16 19:10:5213
A Olsen37962d2e2018-10-12 15:05:1814# Used by targets that compile into the implementation.
15config("chromeos_implementation") {
16 defines = [ "CHROMEOS_IMPLEMENTATION" ]
17}
18
James Cook209256f2018-12-07 18:40:5019buildflag_header("chromeos_buildflags") {
20 header = "chromeos_buildflags.h"
21 flags = [ "IS_CROS_CHROME_SDK=$is_cros_chrome_sdk" ]
22}
23
mukai6ba73552014-10-09 19:05:1724component("chromeos") {
A Olsen37962d2e2018-10-12 15:05:1825 configs += [
26 ":chromeos_implementation",
James Cookc3828a42018-11-28 23:33:2327 "//build/config/linux/nss:system_nss_no_ssl_config",
A Olsen37962d2e2018-10-12 15:05:1828 ]
scottmg34fb7e52014-12-03 23:27:2429 public_deps = [
A Olsen94579842018-10-10 19:22:3130 ":chromeos_constants",
31 ":chromeos_export",
32 ":login_event_recorder",
A Olsen37962d2e2018-10-12 15:05:1833 ":policy_certificate_provider",
34 ":tools",
A Olsen94579842018-10-10 19:22:3135 "//chromeos/cryptohome",
36 "//chromeos/dbus",
37 "//chromeos/login",
A Olsen37962d2e2018-10-12 15:05:1838 "//chromeos/network",
A Olsen94579842018-10-10 19:22:3139 "//chromeos/settings",
scottmg34fb7e52014-12-03 23:27:2440 "//dbus",
mukai6ba73552014-10-09 19:05:1741 ]
42 deps = [
Kush Sinha719fb1b2018-03-19 19:29:5843 ":account_manager_proto",
drcrash7da3d8b2016-09-09 05:39:5344 ":attestation_proto",
rsorokinfc75ccee2017-02-10 13:16:4345 ":authpolicy_proto",
xiaoyinh58676cf2017-05-08 20:21:3146 ":biod_proto",
Jeffrey Kardatzkea3f86c4c2018-05-31 18:34:0747 ":cicerone_proto",
Renee Wright0e1449f2018-03-28 00:21:4048 ":concierge_proto",
agrieved7a71c882015-11-20 19:53:2849 ":cryptohome_proto",
xiaohuic2f57e3f72017-05-31 01:29:5350 ":login_manager_proto",
lasorenf933419f2017-05-15 19:37:4551 ":media_perception_proto",
Luigi Semenzatoa179f272018-09-07 21:06:4152 ":metrics_event_proto",
Denis Kuznetsov046a611c2018-09-27 11:23:5753 ":oobe_config_proto",
agrieved7a71c882015-11-20 19:53:2854 ":power_manager_proto",
Joel Hockeyb797d182018-09-01 10:48:5355 ":seneschal_proto",
Allen Vicencio02457102017-11-28 01:20:2056 ":smbprovider_proto",
Timothy Loh71d654412018-04-04 05:30:0557 ":vm_applications_apps_proto",
mukai6ba73552014-10-09 19:05:1758 "//base",
Nico Webera3d0a422015-01-20 21:46:2159 "//base:i18n",
mukai6ba73552014-10-09 19:05:1760 "//base/third_party/dynamic_annotations",
Alexander Alekseev3f09a8f2018-05-03 02:52:1061 "//components/account_id",
reillyg4a849272015-02-20 21:38:4362 "//components/device_event_log",
tnagel51accc42016-12-28 12:00:5863 "//components/policy:cloud_policy_proto_generated_compile",
agrieved7a71c882015-11-20 19:53:2864 "//components/policy/proto",
stevenjb100c6202016-10-28 02:28:0065 "//components/pref_registry",
brettw9f7802a22016-01-30 06:40:1766 "//components/prefs",
alemate627f6532016-03-04 10:39:5467 "//components/user_manager",
nkostylev8d7d18d2015-01-28 11:25:0868 "//crypto:platform",
mukai6ba73552014-10-09 19:05:1769 "//google_apis",
shenghao77ec80c2017-02-22 20:14:1870 "//media/base:video_facing",
Luum Habtemariamb30c8112018-06-25 21:51:2271 "//services/network/public/cpp:cpp",
mukai6ba73552014-10-09 19:05:1772 "//third_party/protobuf:protobuf_lite",
James Cooka7478252018-02-23 23:03:1173 "//ui/gfx/geometry", # For accelerometer.
mukai6ba73552014-10-09 19:05:1774 ]
teravest54ee2252017-03-17 14:18:1675 sources = [
76 "accelerometer/accelerometer_reader.cc",
77 "accelerometer/accelerometer_reader.h",
78 "accelerometer/accelerometer_types.cc",
79 "accelerometer/accelerometer_types.h",
Kush Sinha719fb1b2018-03-19 19:29:5880 "account_manager/account_manager.cc",
81 "account_manager/account_manager.h",
Kush Sinha74c38a02018-04-16 23:53:4482 "account_manager/account_manager_factory.cc",
83 "account_manager/account_manager_factory.h",
teravest54ee2252017-03-17 14:18:1684 "app_mode/kiosk_oem_manifest_parser.cc",
85 "app_mode/kiosk_oem_manifest_parser.h",
teravest54ee2252017-03-17 14:18:1686 "attestation/attestation_flow.cc",
87 "attestation/attestation_flow.h",
teravest54ee2252017-03-17 14:18:1688 "audio/audio_device.cc",
89 "audio/audio_device.h",
90 "audio/audio_devices_pref_handler.h",
91 "audio/audio_devices_pref_handler_impl.cc",
92 "audio/audio_devices_pref_handler_impl.h",
93 "audio/audio_devices_pref_handler_stub.cc",
94 "audio/audio_devices_pref_handler_stub.h",
95 "audio/audio_pref_observer.h",
96 "audio/chromeos_sounds.h",
97 "audio/cras_audio_handler.cc",
98 "audio/cras_audio_handler.h",
Anand K. Mistry6039ab02018-08-07 03:21:3499 "disks/disk.cc",
100 "disks/disk.h",
teravest54ee2252017-03-17 14:18:16101 "disks/disk_mount_manager.cc",
102 "disks/disk_mount_manager.h",
103 "disks/suspend_unmount_manager.cc",
104 "disks/suspend_unmount_manager.h",
105 "geolocation/geoposition.cc",
106 "geolocation/geoposition.h",
107 "geolocation/simple_geolocation_provider.cc",
108 "geolocation/simple_geolocation_provider.h",
109 "geolocation/simple_geolocation_request.cc",
110 "geolocation/simple_geolocation_request.h",
111 "geolocation/simple_geolocation_request_test_monitor.cc",
112 "geolocation/simple_geolocation_request_test_monitor.h",
113 "hugepage_text/hugepage_text.cc",
114 "hugepage_text/hugepage_text.h",
A Olsend994a4c2018-10-02 11:35:30115 "policy/weekly_time/time_utils.cc",
116 "policy/weekly_time/time_utils.h",
117 "policy/weekly_time/weekly_time.cc",
118 "policy/weekly_time/weekly_time.h",
119 "policy/weekly_time/weekly_time_interval.cc",
120 "policy/weekly_time/weekly_time_interval.h",
teravest54ee2252017-03-17 14:18:16121 "printing/ppd_cache.cc",
122 "printing/ppd_cache.h",
Justin Carlson781f77e212017-11-15 22:32:31123 "printing/ppd_line_reader.cc",
124 "printing/ppd_line_reader.h",
teravest54ee2252017-03-17 14:18:16125 "printing/ppd_provider.cc",
126 "printing/ppd_provider.h",
127 "printing/printer_configuration.cc",
128 "printing/printer_configuration.h",
129 "printing/printer_translator.cc",
130 "printing/printer_translator.h",
David Valleau03e6fa6b2018-01-19 02:54:26131 "printing/uri_components.cc",
132 "printing/uri_components.h",
teravest54ee2252017-03-17 14:18:16133 "process_proxy/process_output_watcher.cc",
134 "process_proxy/process_output_watcher.h",
135 "process_proxy/process_proxy.cc",
136 "process_proxy/process_proxy.h",
137 "process_proxy/process_proxy_registry.cc",
138 "process_proxy/process_proxy_registry.h",
squea15eba142017-04-25 15:41:36139 "system/cpu_temperature_reader.cc",
140 "system/cpu_temperature_reader.h",
teravest54ee2252017-03-17 14:18:16141 "system/devicemode.cc",
142 "system/devicemode.h",
143 "system/devicetype.cc",
144 "system/devicetype.h",
Pavol Markoac1f5612018-05-19 21:44:59145 "system/factory_ping_embargo_check.cc",
146 "system/factory_ping_embargo_check.h",
teravest54ee2252017-03-17 14:18:16147
148 # Used when running mash, both on Linux and on real devices.
149 "system/fake_statistics_provider.cc",
150 "system/fake_statistics_provider.h",
151 "system/name_value_pairs_parser.cc",
152 "system/name_value_pairs_parser.h",
153 "system/statistics_provider.cc",
154 "system/statistics_provider.h",
teravest54ee2252017-03-17 14:18:16155 "timezone/timezone_provider.cc",
156 "timezone/timezone_provider.h",
157 "timezone/timezone_request.cc",
158 "timezone/timezone_request.h",
159 "timezone/timezone_resolver.cc",
160 "timezone/timezone_resolver.h",
161 "tpm/tpm_password_fetcher.cc",
162 "tpm/tpm_password_fetcher.h",
163 "tpm/tpm_token_info_getter.cc",
164 "tpm/tpm_token_info_getter.h",
165 "tpm/tpm_token_loader.cc",
166 "tpm/tpm_token_loader.h",
167 ]
agrievec50a6542016-06-09 03:44:09168 if (current_cpu == "arm" || current_cpu == "x86") {
A Olsen37962d2e2018-10-12 15:05:18169 defines = [ "BINDER_IPC_32BIT" ]
hashimotoaa1465a2015-12-11 06:19:59170 }
mukai6ba73552014-10-09 19:05:17171}
172
A Olsen94579842018-10-10 19:22:31173source_set("chromeos_export") {
174 deps = [
175 "//base",
176 ]
177 sources = [
178 "chromeos_export.h",
179 ]
180}
181
182source_set("chromeos_constants") {
A Olsen37962d2e2018-10-12 15:05:18183 configs += [ ":chromeos_implementation" ]
A Olsen94579842018-10-10 19:22:31184 deps = [
185 ":chromeos_export",
186 "//base",
187 "//base:i18n",
188 "//chromeos/dbus:dbus_switches",
189 "//third_party/icu",
190 ]
191 sources = [
192 "chromeos_constants.cc",
193 "chromeos_constants.h",
194 "chromeos_features.cc",
195 "chromeos_features.h",
196 "chromeos_paths.cc",
197 "chromeos_paths.h",
198 "chromeos_pref_names.cc",
199 "chromeos_pref_names.h",
200 "chromeos_switches.cc",
201 "chromeos_switches.h",
202 ]
A Olsen94579842018-10-10 19:22:31203}
204
205source_set("login_event_recorder") {
A Olsen37962d2e2018-10-12 15:05:18206 configs += [ ":chromeos_implementation" ]
A Olsen94579842018-10-10 19:22:31207 deps = [
208 ":chromeos_export",
209 "//base",
210 ]
211 sources = [
212 "login_event_recorder.cc",
213 "login_event_recorder.h",
214 ]
A Olsen37962d2e2018-10-12 15:05:18215}
216
217source_set("policy_certificate_provider") {
218 configs += [ ":chromeos_implementation" ]
219 deps = [
220 ":chromeos_export",
221 "//base",
222 ]
223 sources = [
224 "policy_certificate_provider.h",
225 ]
226}
227
228source_set("tools") {
229 configs += [ ":chromeos_implementation" ]
230 deps = [
231 ":chromeos_export",
232 "//base",
233 ]
234 sources = [
235 "tools/variable_expander.cc",
236 "tools/variable_expander.h",
237 ]
A Olsen94579842018-10-10 19:22:31238}
239
skau65455b5a02016-08-03 20:16:38240# This must be a static library instead of a source set because some of the
brettwc4e6a0f2015-08-27 18:28:32241# files pull in things with dependencies that aren't linked in all cases.
242#
243# TODO this should probably be changed such that it links in all cases and
244# can be converted to a source set.
Brett Wilson16eb70c2015-08-22 21:08:09245static_library("test_support") {
mukai6ba73552014-10-09 19:05:17246 testonly = true
A Olsen94579842018-10-10 19:22:31247 public_deps = [
248 ":test_support_source_set",
249 ]
250}
251
252source_set("test_support_source_set") {
253 testonly = true
Brett Wilson817fec02015-08-22 20:36:49254 public_deps = [
drcrash7da3d8b2016-09-09 05:39:53255 ":attestation_proto",
xiaoyinh58676cf2017-05-08 20:21:31256 ":biod_proto",
mukai6ba73552014-10-09 19:05:17257 ":chromeos",
258 ":cryptohome_proto",
259 ":power_manager_proto",
A Olsen94579842018-10-10 19:22:31260 "//chromeos/dbus:test_support",
oshima3f959fa82016-05-02 18:42:57261 ]
262 deps = [
Alexander Alekseev3f09a8f2018-05-03 02:52:10263 "//components/account_id",
oshima3f959fa82016-05-02 18:42:57264 "//google_apis",
265 "//net:test_support",
Luum Habtemariamb30c8112018-06-25 21:51:22266 "//services/network:test_support",
Brett Wilson817fec02015-08-22 20:36:49267 "//testing/gmock",
oshima3f959fa82016-05-02 18:42:57268 "//testing/gtest",
mukai6ba73552014-10-09 19:05:17269 ]
270 sources = [
271 "attestation/mock_attestation_flow.cc",
272 "attestation/mock_attestation_flow.h",
273 "chromeos_test_utils.cc",
274 "chromeos_test_utils.h",
275 "cryptohome/mock_async_method_caller.cc",
276 "cryptohome/mock_async_method_caller.h",
277 "cryptohome/mock_homedir_methods.cc",
278 "cryptohome/mock_homedir_methods.h",
mukai6ba73552014-10-09 19:05:17279 "disks/mock_disk_mount_manager.cc",
280 "disks/mock_disk_mount_manager.h",
brettw6c1a7722015-01-06 08:34:24281 "login/auth/fake_extended_authenticator.cc",
282 "login/auth/fake_extended_authenticator.h",
mukai6ba73552014-10-09 19:05:17283 "login/auth/mock_auth_attempt_state_resolver.cc",
284 "login/auth/mock_auth_attempt_state_resolver.h",
285 "login/auth/mock_auth_status_consumer.cc",
286 "login/auth/mock_auth_status_consumer.h",
mukai6ba73552014-10-09 19:05:17287 "login/auth/mock_url_fetchers.cc",
288 "login/auth/mock_url_fetchers.h",
isandrk12962022017-05-04 15:27:33289 "login/scoped_test_public_session_login_state.cc",
290 "login/scoped_test_public_session_login_state.h",
mukai6ba73552014-10-09 19:05:17291 "network/fake_network_device_handler.cc",
292 "network/fake_network_device_handler.h",
293 "network/mock_managed_network_configuration_handler.cc",
294 "network/mock_managed_network_configuration_handler.h",
malaykeshav77a1ea02016-04-21 18:55:50295 "network/mock_network_device_handler.cc",
296 "network/mock_network_device_handler.h",
Alexander Hendrichb24296892018-08-01 08:18:15297 "network/mock_network_state_handler.cc",
298 "network/mock_network_state_handler.h",
khorimoto6c378ee2017-03-30 23:57:47299 "network/network_state_test.cc",
300 "network/network_state_test.h",
mukai6ba73552014-10-09 19:05:17301 "network/onc/onc_test_utils.cc",
302 "network/onc/onc_test_utils.h",
kumarniranjanf0973312017-05-20 00:00:34303 "network/portal_detector/mock_network_portal_detector.cc",
304 "network/portal_detector/mock_network_portal_detector.h",
mukai6ba73552014-10-09 19:05:17305 ]
306}
307
308static_library("test_support_without_gmock") {
309 testonly = true
A Olsen94579842018-10-10 19:22:31310 public_deps = [
311 "//chromeos/dbus",
mukai6ba73552014-10-09 19:05:17312 ]
313}
314
315test("chromeos_unittests") {
316 configs += [
agrieve95ba4442016-04-25 15:47:13317 "//build/config/linux/dbus",
Nico Weber2023256d2018-08-28 17:44:57318 "//build/config/linux/nss:system_nss_no_ssl_config",
mukai6ba73552014-10-09 19:05:17319 ]
320 deps = [
drcrash7da3d8b2016-09-09 05:39:53321 ":attestation_proto",
Roman Sorokin63c0c2162017-11-28 09:43:04322 ":authpolicy_proto",
xiaoyinh58676cf2017-05-08 20:21:31323 ":biod_proto",
James Cook209256f2018-12-07 18:40:50324 ":chromeos_buildflags",
agrieved7a71c882015-11-20 19:53:28325 ":cryptohome_proto",
Denis Kuznetsov046a611c2018-09-27 11:23:57326 ":oobe_config_proto",
agrieved7a71c882015-11-20 19:53:28327 ":power_manager_proto",
328 ":test_support",
Roman Sorokin94a94e32017-11-29 13:11:21329 ":test_support_without_gmock",
mukai6ba73552014-10-09 19:05:17330 "//base/test:test_support",
A Olsen94579842018-10-10 19:22:31331 "//chromeos/cryptohome:unit_tests",
332 "//chromeos/dbus:unit_tests",
333 "//chromeos/login:unit_tests",
A Olsen37962d2e2018-10-12 15:05:18334 "//chromeos/network:unit_tests",
Kyle Horimoto940d7df2018-03-17 01:00:23335 "//chromeos/services:unit_tests",
A Olsen94579842018-10-10 19:22:31336 "//chromeos/settings:unit_tests",
Alexander Alekseev3f09a8f2018-05-03 02:52:10337 "//components/account_id",
mukai6ba73552014-10-09 19:05:17338 "//components/onc",
A Olsend994a4c2018-10-02 11:35:30339 "//components/policy:generated",
340 "//components/policy/proto",
brettw9f7802a22016-01-30 06:40:17341 "//components/prefs:test_support",
stevenjb83368882015-07-10 20:51:45342 "//components/proxy_config",
mukai6ba73552014-10-09 19:05:17343 "//crypto",
344 "//crypto:test_support",
345 "//dbus:test_support",
346 "//google_apis",
jennyzfbaa3e62017-03-06 20:14:02347 "//media/base:video_facing",
Ken Rockotf03d97c952018-07-04 22:08:10348 "//mojo/core/embedder",
mukai6ba73552014-10-09 19:05:17349 "//net",
350 "//net:test_support",
Luum Habtemariamb30c8112018-06-25 21:51:22351 "//services/network:test_support",
Jay Civelli1ba115722018-07-16 17:41:01352 "//services/network/public/cpp",
mukai6ba73552014-10-09 19:05:17353 "//testing/gmock",
354 "//testing/gtest",
jshin77e507b2015-04-24 01:13:15355 "//third_party/icu",
mukai6ba73552014-10-09 19:05:17356 "//url",
mukai6ba73552014-10-09 19:05:17357 ]
teravest54ee2252017-03-17 14:18:16358 sources = [
Kush Sinha719fb1b2018-03-19 19:29:58359 "account_manager/account_manager_unittest.cc",
teravest54ee2252017-03-17 14:18:16360 "app_mode/kiosk_oem_manifest_parser_unittest.cc",
361 "attestation/attestation_flow_unittest.cc",
362 "audio/audio_devices_pref_handler_impl_unittest.cc",
363 "audio/cras_audio_handler_unittest.cc",
teravest54ee2252017-03-17 14:18:16364 "disks/disk_mount_manager_unittest.cc",
Anand K. Mistry3a633db2018-08-07 06:52:32365 "disks/disk_unittest.cc",
teravest54ee2252017-03-17 14:18:16366 "disks/suspend_unmount_manager_unittest.cc",
367 "geolocation/simple_geolocation_unittest.cc",
A Olsend994a4c2018-10-02 11:35:30368 "policy/weekly_time/time_utils_unittest.cc",
369 "policy/weekly_time/weekly_time_interval_unittest.cc",
370 "policy/weekly_time/weekly_time_unittest.cc",
teravest54ee2252017-03-17 14:18:16371 "printing/ppd_cache_unittest.cc",
Justin Carlson781f77e212017-11-15 22:32:31372 "printing/ppd_line_reader_unittest.cc",
teravest54ee2252017-03-17 14:18:16373 "printing/ppd_provider_unittest.cc",
Sean Kauff2bbe72018-05-23 01:05:02374 "printing/printer_configuration_unittest.cc",
teravest54ee2252017-03-17 14:18:16375 "printing/printer_translator_unittest.cc",
376 "process_proxy/process_output_watcher_unittest.cc",
377 "process_proxy/process_proxy_unittest.cc",
Kyle Horimoto940d7df2018-03-17 01:00:23378 "run_all_unittests.cc",
squea15eba142017-04-25 15:41:36379 "system/cpu_temperature_reader_unittest.cc",
Pavol Markoac1f5612018-05-19 21:44:59380 "system/factory_ping_embargo_check_unittest.cc",
teravest54ee2252017-03-17 14:18:16381 "system/name_value_pairs_parser_unittest.cc",
teravest54ee2252017-03-17 14:18:16382 "timezone/timezone_unittest.cc",
Lutz Justen09c943a2018-04-13 01:49:19383 "tools/variable_expander_unittest.cc",
teravest54ee2252017-03-17 14:18:16384 "tpm/tpm_token_info_getter_unittest.cc",
385 ]
dpranke94c6fb22016-06-10 01:55:08386
387 data = [
388 "test/data/",
dpranke94c6fb22016-06-10 01:55:08389 ]
mukai6ba73552014-10-09 19:05:17390}
391
Ben Pastene70ce32d22018-09-10 22:30:52392# The following definitions only apply when building for a CrOS board (ie: not
393# linux-chromeos). See the following for reference:
394# https://chromium.googlesource.com/chromium/src/+/master/docs/chromeos_build_instructions.md
395# https://chromium.googlesource.com/chromiumos/docs/+/master/simple_chrome_workflow.md
James Cook209256f2018-12-07 18:40:50396if (is_cros_chrome_sdk) {
Ben Pastene4ab98652018-12-17 18:33:18397 generate_runner_script("cros_vm_launcher") {
Ben Pastenec1543c22018-05-04 23:39:43398 generated_script = "$root_build_dir/bin/launch_cros_vm"
Ben Pastene22d25c82018-08-06 20:18:34399
400 # Assume every time we build cros_vm_launcher, we also build chrome and
401 # want to deploy it to the VM.
402 deploy_chrome = true
Ben Pastenec1543c22018-05-04 23:39:43403 }
Ben Pastene9ec70f92018-05-14 21:09:22404
Ben Pastene4ab98652018-12-17 18:33:18405 # The sanity test's actual binary is baked into the OS image. All we need to
Ben Pastene9ec70f92018-05-14 21:09:22406 # do is build the test wrapper and build our own browser to push to the VM
407 # before testing it.
Ben Pastene4ab98652018-12-17 18:33:18408 generate_runner_script("cros_vm_sanity_test") {
Ben Pastene16882032018-09-21 01:16:39409 testonly = true
410 test_exe = "cros_vm_sanity_test"
Ben Pastene9ec70f92018-05-14 21:09:22411 generated_script = "$root_build_dir/bin/run_cros_vm_sanity_test"
Ben Pastened09dd692018-09-21 18:58:10412 runtime_deps_file = "$root_out_dir/cros_vm_sanity_test.runtime_deps"
Ben Pastene9ec70f92018-05-14 21:09:22413
Ben Pastene16882032018-09-21 01:16:39414 data_deps = [
415 ":cros_chrome_deploy",
416 "//:chromiumos_preflight", # Builds the browser.
417 ]
Ben Pastene9ec70f92018-05-14 21:09:22418 }
Ben Pastene2bc796b2018-08-03 03:02:00419
Ben Pastene33015a02018-09-28 18:59:14420 tast_test("chrome_login_tast_tests") {
421 tast_tests = [
422 "ui.ChromeLogin",
423 "ui.ChromeCrashLoggedIn",
424 "ui.ChromeCrashNotLoggedIn",
425 ]
426 }
427
James Cookc3828a42018-11-28 23:33:23428 # Tast test sources live in the Chromium OS repository.
429 # To diagnose tast failures or disable tests, see go/tast-failures
Ben Pastene09de3942018-10-02 18:06:42430 tast_test("chrome_all_tast_tests") {
Ben Pastene0f413082018-12-06 00:12:20431 disabled_tests = [
432 # Disabled due to flake. https://crbug.com/909736
433 "ui.MashLogin",
Ben Pastene0f413082018-12-06 00:12:20434 ]
435 tast_conditional = "!disabled && !\"group:*\" && !informational" +
436 " && (\"dep:chrome\" || \"dep:chrome_login\")"
437 foreach(test, disabled_tests) {
438 tast_conditional += " && !\"name:${test}\""
439 }
440 tast_conditional = "( " + tast_conditional + " )"
Ben Pastene09de3942018-10-02 18:06:42441 }
442
Ben Pastene2bc796b2018-08-03 03:02:00443 group("cros_chrome_deploy") {
444 # The following run-time dependencies are needed to deploy chrome to a
445 # ChromeOS device. See the link for the full list:
446 # https://codesearch.chromium.org/chromium/src/third_party/chromite/lib/chrome_util.py?l=341
447 # Most of these are copy targets, for which GN doesn't add their outputs
448 # as runtime-deps. See the link below for more details:
449 # https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.md#actions-and-copies
450 data_deps = [
451 "//chrome:xdg_mime",
452 "//mojo/core:shared_library_arc32",
453 "//mojo/core:shared_library_arc64",
454 ]
455
456 # TODO(bpastene): Figure out what's generating resources/chromeos/ and
457 # declare it as a dep instead of adding the dir directly.
458 data = [
459 "$root_out_dir/resources/chromeos/",
460 ]
461 }
Ben Pastenec60bf5022018-05-04 01:10:33462}
463
Lutz Justen09c943a2018-04-13 01:49:19464fuzzer_test("variable_expander_fuzzer") {
465 sources = [
466 "tools/variable_expander_fuzzer.cc",
467 ]
468 seed_corpus = "//chromeos/test/data/variable_expander/fuzzer_corpus"
469 dict = "//chromeos/test/data/variable_expander/fuzzer.dict"
470 deps = [
471 ":chromeos",
472 "//base/test:test_support",
473 ]
474}
475
[email protected]743530f2014-06-12 19:38:50476proto_library("power_manager_proto") {
477 sources = [
Daniel Erat0f6c6242018-03-09 18:24:14478 "//third_party/cros_system_api/dbus/power_manager/backlight.proto",
Daniel Erat05f8e5c2017-10-30 22:41:45479 "//third_party/cros_system_api/dbus/power_manager/idle.proto",
[email protected]743530f2014-06-12 19:38:50480 "//third_party/cros_system_api/dbus/power_manager/input_event.proto",
481 "//third_party/cros_system_api/dbus/power_manager/peripheral_battery_status.proto",
482 "//third_party/cros_system_api/dbus/power_manager/policy.proto",
483 "//third_party/cros_system_api/dbus/power_manager/power_supply_properties.proto",
484 "//third_party/cros_system_api/dbus/power_manager/suspend.proto",
derat08e333d2017-03-21 21:51:22485 "//third_party/cros_system_api/dbus/power_manager/switch_states.proto",
[email protected]743530f2014-06-12 19:38:50486 ]
mukai6ba73552014-10-09 19:05:17487
488 proto_out_dir = "chromeos/dbus/power_manager"
489}
490
Luigi Semenzatoa179f272018-09-07 21:06:41491proto_library("metrics_event_proto") {
492 sources = [
493 "//third_party/cros_system_api/dbus/metrics_event/metrics_event.proto",
494 ]
495
496 proto_out_dir = "chromeos/dbus/metrics_event"
497}
498
drcrash7da3d8b2016-09-09 05:39:53499proto_library("attestation_proto") {
500 sources = [
501 "dbus/proto/attestation.proto",
502 ]
503
Steven Bennetts149a15b2018-07-19 17:33:36504 proto_out_dir = "chromeos/dbus/attestation"
[email protected]743530f2014-06-12 19:38:50505}
rsorokinfc75ccee2017-02-10 13:16:43506
507proto_library("authpolicy_proto") {
508 sources = [
rsorokin01014b72017-04-28 12:26:29509 "//third_party/cros_system_api/dbus/authpolicy/active_directory_info.proto",
rsorokinfc75ccee2017-02-10 13:16:43510 ]
511
512 proto_out_dir = "chromeos/dbus/authpolicy"
513}
xiaoyinh58676cf2017-05-08 20:21:31514
515proto_library("biod_proto") {
516 sources = [
517 "//third_party/cros_system_api/dbus/biod/constants.proto",
518 "//third_party/cros_system_api/dbus/biod/messages.proto",
519 ]
520
521 proto_out_dir = "chromeos/dbus/biod"
522}
lasorenf933419f2017-05-15 19:37:45523
Jeffrey Kardatzkea3f86c4c2018-05-31 18:34:07524proto_library("cicerone_proto") {
525 sources = [
526 "//third_party/cros_system_api/dbus/vm_cicerone/cicerone_service.proto",
527 ]
528
529 proto_out_dir = "chromeos/dbus/cicerone"
530}
531
Renee Wright0e1449f2018-03-28 00:21:40532proto_library("concierge_proto") {
533 sources = [
534 "//third_party/cros_system_api/dbus/vm_concierge/service.proto",
535 ]
536
537 proto_out_dir = "chromeos/dbus/concierge"
538}
Timothy Loh71d654412018-04-04 05:30:05539
Steven Bennetts149a15b2018-07-19 17:33:36540proto_library("cryptohome_proto") {
541 sources = [
542 "//third_party/cros_system_api/dbus/cryptohome/key.proto",
543 "//third_party/cros_system_api/dbus/cryptohome/rpc.proto",
544 ]
545
546 proto_out_dir = "chromeos/dbus/cryptohome"
547}
548
549proto_library("cryptohome_signkey_proto") {
550 sources = [
551 "//third_party/cros_system_api/dbus/cryptohome/signed_secret.proto",
552 ]
553
554 proto_out_dir = "chromeos/dbus/cryptohome"
555}
556
557proto_library("login_manager_proto") {
558 sources = [
559 "//third_party/cros_system_api/dbus/login_manager/arc.proto",
560 "//third_party/cros_system_api/dbus/login_manager/policy_descriptor.proto",
561 ]
562
563 proto_out_dir = "chromeos/dbus/login_manager"
564}
565
566proto_library("media_perception_proto") {
567 sources = [
568 "dbus/proto/media_perception.proto",
569 ]
570
571 proto_out_dir = "chromeos/dbus/media_perception"
572}
573
Denis Kuznetsov046a611c2018-09-27 11:23:57574proto_library("oobe_config_proto") {
575 sources = [
576 "//third_party/cros_system_api/dbus/oobe_config/oobe_config.proto",
577 ]
578
579 proto_out_dir = "chromeos/dbus/oobe_config"
580}
581
Joel Hockeyb797d182018-09-01 10:48:53582proto_library("seneschal_proto") {
583 sources = [
584 "//third_party/cros_system_api/dbus/seneschal/seneschal_service.proto",
585 ]
586
587 proto_out_dir = "chromeos/dbus/seneschal"
588}
589
Steven Bennetts149a15b2018-07-19 17:33:36590proto_library("smbprovider_proto") {
591 sources = [
592 "//third_party/cros_system_api/dbus/smbprovider/directory_entry.proto",
593 ]
594
595 proto_out_dir = "chromeos/dbus/smbprovider"
596}
597
Timothy Loh71d654412018-04-04 05:30:05598proto_library("vm_applications_apps_proto") {
599 sources = [
600 "//third_party/cros_system_api/dbus/vm_applications/apps.proto",
601 ]
602
603 proto_out_dir = "chromeos/dbus/vm_applications"
604}
Steven Bennetts149a15b2018-07-19 17:33:36605
606proto_library("account_manager_proto") {
607 sources = [
608 "account_manager/tokens.proto",
609 ]
610
611 proto_out_dir = "chromeos/account_manager"
612}