Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: ash/test/BUILD.gn

Issue 2400063003: Adds more BUILD.gns to ash (Closed)
Patch Set: not relative Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 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
5 import("//build/config/features.gni")
msw 2016/10/07 22:02:25 ditto: please audit imports.
sky 2016/10/07 22:23:14 Done.
6 import("//build/config/ui.gni")
7 import("//testing/test.gni")
8 import("//ui/base/ui_features.gni")
9
10 # Used to test ash with an aura backend.
11 source_set("ash_with_aura_test_support") {
12 testonly = true
13 sources = [
14 "ash_test_impl_aura.cc",
15 "ash_test_impl_aura.h",
16 ]
17 deps = [
18 ":test_support_common",
19 "//ash",
20 "//ash/common/test:test_support",
21 "//base",
22 "//skia",
23 "//ui/aura:test_support",
24 "//ui/display",
25 "//ui/wm",
26 ]
27 }
28
29 static_library("test_support_without_content") {
30 testonly = true
31 sources = [
32 "ash_test_environment_default.cc",
33 ]
34
35 public_deps = [
36 ":test_support_common",
37 ]
38
39 deps = [
40 "//base",
41 "//base/test:test_support",
42 "//skia",
43 ]
44 }
45
46 static_library("test_support_with_content") {
47 testonly = true
48 sources = [
49 "ash_test_environment_content.cc",
50 "ash_test_environment_content.h",
51 "content/test_shell_content_state.cc",
52 "content/test_shell_content_state.h",
53 ]
54 configs += [ "//build/config:precompiled_headers" ]
55
56 public_deps = [
57 ":test_support_common",
58 "//ash:ash_with_content",
59 "//content/public/browser",
60 "//content/test:test_support",
61 "//skia",
62 ]
63 }
64
65 # Internal target consumed by |test_support_with_content| and
66 # |test_support_without_content|. This target contains all the test support
67 # files, with the exception of an implementation of AshTestEnvironment.
68 # Consumers of ash should use one of |test_support_with_content| or
69 # |test_support_without_content|.
70 static_library("test_support_common") {
71 testonly = true
72 visibility = [ ":*" ]
73 sources = [
74 "../shell/toplevel_window.cc",
75 "../shell/toplevel_window.h",
76 "ash_md_test_base.cc",
77 "ash_md_test_base.h",
78 "ash_test_base.cc",
79 "ash_test_base.h",
80 "ash_test_environment.h",
81 "ash_test_helper.cc",
82 "ash_test_helper.h",
83 "ash_test_views_delegate.cc",
84 "ash_test_views_delegate.h",
85 "child_modal_window.cc",
86 "child_modal_window.h",
87 "cursor_manager_test_api.cc",
88 "cursor_manager_test_api.h",
89 "display_manager_test_api.cc",
90 "display_manager_test_api.h",
91 "immersive_fullscreen_controller_test_api.cc",
92 "immersive_fullscreen_controller_test_api.h",
93 "mirror_window_test_api.cc",
94 "mirror_window_test_api.h",
95 "overflow_bubble_view_test_api.cc",
96 "overflow_bubble_view_test_api.h",
97 "shelf_button_pressed_metric_tracker_test_api.cc",
98 "shelf_button_pressed_metric_tracker_test_api.h",
99 "shelf_view_test_api.cc",
100 "shelf_view_test_api.h",
101 "shell_test_api.cc",
102 "shell_test_api.h",
103 "status_area_widget_test_helper.cc",
104 "status_area_widget_test_helper.h",
105 "task_switch_time_tracker_test_api.cc",
106 "task_switch_time_tracker_test_api.h",
107 "test_activation_delegate.cc",
108 "test_activation_delegate.h",
109 "test_keyboard_ui.cc",
110 "test_keyboard_ui.h",
111 "test_lock_state_controller_delegate.cc",
112 "test_lock_state_controller_delegate.h",
113 "test_overlay_delegate.cc",
114 "test_overlay_delegate.h",
115 "test_screenshot_delegate.cc",
116 "test_screenshot_delegate.h",
117 "test_session_state_animator.cc",
118 "test_session_state_animator.h",
119 "test_shelf_delegate.cc",
120 "test_shelf_delegate.h",
121 "test_shelf_item_delegate.cc",
122 "test_shelf_item_delegate.h",
123 "test_shell_delegate.cc",
124 "test_shell_delegate.h",
125 "test_suite.cc",
126 "test_suite.h",
127 "test_suite_init.h",
128 "test_suite_init.mm",
129 "test_system_tray_delegate.cc",
130 "test_system_tray_delegate.h",
131 "test_system_tray_item.cc",
132 "test_system_tray_item.h",
133 "test_wallpaper_delegate.cc",
134 "test_wallpaper_delegate.h",
135 "tray_cast_test_api.cc",
136 "tray_cast_test_api.h",
137 "ui_controls_factory_ash.cc",
138 "ui_controls_factory_ash.h",
139 "user_metrics_recorder_test_api.cc",
140 "user_metrics_recorder_test_api.h",
141 ]
142 configs += [ "//build/config:precompiled_headers" ]
143
144 public_deps = [
145 "//ash",
146 ]
147 deps = [
148 "//ash/common/test:test_support",
149 "//ash/resources",
150 "//base:i18n",
151 "//base/test:test_support",
152 "//components/signin/core/account_id",
153 "//components/user_manager:user_manager",
154 "//device/bluetooth",
155 "//skia",
156 "//testing/gtest",
157 "//ui/accessibility",
158 "//ui/app_list:test_support",
159 "//ui/app_list/presenter",
160 "//ui/aura",
161 "//ui/aura:test_support",
162 "//ui/base:test_support",
163 "//ui/compositor:test_support",
164 "//ui/display/types",
165 "//ui/events:events_base",
166 "//ui/events:test_support",
167 "//ui/events/devices",
168 "//ui/gl",
169 "//ui/gl:test_support",
170 "//ui/keyboard",
171 "//ui/message_center",
172 "//ui/views",
173 "//ui/views:test_support",
174 "//ui/wm",
175 ]
176
177 if (is_win) {
178 deps += [ "//ui/platform_window/win" ]
179 }
180
181 if (use_x11) {
182 deps += [ "//ui/gfx/x" ]
183 }
184
185 if (is_chromeos) {
186 deps += [
187 "//chromeos",
188 "//ui/display",
189 ]
190
191 sources += [
192 "../laser/laser_pointer_controller_test_api.cc",
193 "../laser/laser_pointer_controller_test_api.h",
194 "../laser/laser_pointer_points_test_api.cc",
195 "../laser/laser_pointer_points_test_api.h",
196 ]
197 }
198 }
199
200 static_library("interactive_ui_test_support") {
201 testonly = true
202 configs += [ "//build/config:precompiled_headers" ]
203 public_deps = [
204 ":test_support_without_content",
205 "//ash",
206 ]
207 sources = [
208 "ash_interactive_ui_test_base.cc",
209 "ash_interactive_ui_test_base.h",
210 ]
211 deps = [
212 ":test_support_with_content",
213 "//base",
214 "//skia",
215 "//testing/gtest",
216 "//ui/aura",
217 "//ui/base",
218 "//ui/gl:test_support",
219 ]
220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698