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

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

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

Powered by Google App Engine
This is Rietveld 408576698