forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
71 lines (63 loc) · 2.66 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/args.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//testing/test.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
# To add a unit test to this target, make a "unit_test" source_set in your
# component and add a reference here.
test("chromeos_components_unittests") {
sources = [
"chromeos_components_test_suite.cc",
"chromeos_components_test_suite.h",
"run_all_unittests.cc",
]
# TODO(https://crbug.com/1164001): unit_tests deps should be moved to
# the appropriate place during the code migration project.
deps = [
"//base",
"//base/test:test_support",
"//build:chromeos_buildflags",
"//chromeos/components/cdm_factory_daemon:unit_tests",
"//chromeos/components/eche_app_ui:unit_tests",
"//chromeos/components/feature_usage:unit_tests",
"//chromeos/components/local_search_service:unit_tests",
"//chromeos/components/local_search_service/public/mojom:unit_tests",
"//chromeos/components/mojo_bootstrap:unit_tests",
"//chromeos/components/multidevice:unit_tests",
"//chromeos/components/phonehub:unit_tests",
"//chromeos/components/projector_app:unit_tests",
"//chromeos/components/proximity_auth:unit_tests",
"//chromeos/components/sensors:unit_tests",
"//chromeos/components/string_matching:unit_tests",
"//chromeos/components/sync_wifi:unit_tests",
"//chromeos/components/tether:unit_tests",
"//chromeos/components/trial_group:unit_tests",
"//mojo/core/embedder",
"//ui/base:base",
"//ui/gl:test_support",
]
# Tests for Camera App only work on Chrome OS device but not linux-chromeos.
if (is_chromeos_ash && is_chromeos_device) {
deps += [ "//chromeos/components/camera_app_ui:unit_tests" ]
}
data_deps = [
"//chromeos/strings:chromeos_test_strings",
"//ui/resources:ui_test_pak_data",
]
}
group("closure_compile") {
testonly = true
# TODO(https://crbug.com/1164001): closure_compile deps should be moved to
# the appropriate place during the code migration project.
deps = [
"//chromeos/components/camera_app_ui:closure_compile",
"//chromeos/components/connectivity_diagnostics:closure_compile",
"//chromeos/components/eche_app_ui:closure_compile",
"//chromeos/components/multidevice/debug_webui/resources:closure_compile",
"//chromeos/components/personalization_app:closure_compile",
"//chromeos/components/projector_app/resources:closure_compile",
"//chromeos/components/system_apps:closure_compile",
]
}