blob: 1d81b709a4f78d80a7831093ae17942ae006892e [file] [log] [blame]
sky23ca8fd2016-10-07 23:40:121# 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
5import("//build/config/ui.gni")
6
7# Used to test ash with an aura backend.
8source_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
26static_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
43static_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|.
67static_library("test_support_common") {
68 testonly = true
69 visibility = [ ":*" ]
70 sources = [
jamescook19296fd2016-12-09 01:23:4771 # TODO(jamescook): Move these files into ash/test.
72 "../laser/laser_pointer_controller_test_api.cc",
73 "../laser/laser_pointer_controller_test_api.h",
74 "../laser/laser_pointer_points_test_api.cc",
75 "../laser/laser_pointer_points_test_api.h",
sky23ca8fd2016-10-07 23:40:1276 "../shell/toplevel_window.cc",
77 "../shell/toplevel_window.h",
78 "ash_md_test_base.cc",
79 "ash_md_test_base.h",
80 "ash_test_base.cc",
81 "ash_test_base.h",
82 "ash_test_environment.h",
83 "ash_test_helper.cc",
84 "ash_test_helper.h",
85 "ash_test_views_delegate.cc",
86 "ash_test_views_delegate.h",
87 "child_modal_window.cc",
88 "child_modal_window.h",
89 "cursor_manager_test_api.cc",
90 "cursor_manager_test_api.h",
sky23ca8fd2016-10-07 23:40:1291 "immersive_fullscreen_controller_test_api.cc",
92 "immersive_fullscreen_controller_test_api.h",
erg8f7f2a62016-11-03 00:20:2093 "lock_state_controller_test_api.cc",
94 "lock_state_controller_test_api.h",
sky23ca8fd2016-10-07 23:40:1295 "mirror_window_test_api.cc",
96 "mirror_window_test_api.h",
97 "overflow_bubble_view_test_api.cc",
98 "overflow_bubble_view_test_api.h",
99 "shelf_button_pressed_metric_tracker_test_api.cc",
100 "shelf_button_pressed_metric_tracker_test_api.h",
101 "shelf_view_test_api.cc",
102 "shelf_view_test_api.h",
103 "shell_test_api.cc",
104 "shell_test_api.h",
105 "status_area_widget_test_helper.cc",
106 "status_area_widget_test_helper.h",
107 "task_switch_time_tracker_test_api.cc",
108 "task_switch_time_tracker_test_api.h",
109 "test_activation_delegate.cc",
110 "test_activation_delegate.h",
mswfb834642017-01-04 22:50:05111 "test_app_list_view_presenter_impl.cc",
112 "test_app_list_view_presenter_impl.h",
sky23ca8fd2016-10-07 23:40:12113 "test_keyboard_ui.cc",
114 "test_keyboard_ui.h",
sky23ca8fd2016-10-07 23:40:12115 "test_overlay_delegate.cc",
116 "test_overlay_delegate.h",
117 "test_screenshot_delegate.cc",
118 "test_screenshot_delegate.h",
119 "test_session_state_animator.cc",
120 "test_session_state_animator.h",
sky23ca8fd2016-10-07 23:40:12121 "test_shell_delegate.cc",
122 "test_shell_delegate.h",
123 "test_suite.cc",
124 "test_suite.h",
125 "test_suite_init.h",
126 "test_suite_init.mm",
sky23ca8fd2016-10-07 23:40:12127 "test_system_tray_item.cc",
128 "test_system_tray_item.h",
129 "test_wallpaper_delegate.cc",
130 "test_wallpaper_delegate.h",
jamescook19296fd2016-12-09 01:23:47131 "tray_cast_test_api.cc",
132 "tray_cast_test_api.h",
sky23ca8fd2016-10-07 23:40:12133 "ui_controls_factory_ash.cc",
134 "ui_controls_factory_ash.h",
135 "user_metrics_recorder_test_api.cc",
136 "user_metrics_recorder_test_api.h",
sky307e3582017-01-05 17:30:24137 "wm_window_aura_test_api.cc",
138 "wm_window_aura_test_api.h",
sky23ca8fd2016-10-07 23:40:12139 ]
140 configs += [ "//build/config:precompiled_headers" ]
141
142 public_deps = [
143 "//ash",
rjkroege72f8154f2016-10-29 00:49:02144 "//ui/display:display_manager_test_api",
sky23ca8fd2016-10-07 23:40:12145 ]
146 deps = [
147 "//ash/common/test:test_support",
jamescook8800b8232016-10-19 12:46:27148 "//ash/public/cpp",
erg8f7f2a62016-11-03 00:20:20149 "//ash/public/interfaces",
sky23ca8fd2016-10-07 23:40:12150 "//ash/resources",
151 "//base:i18n",
152 "//base/test:test_support",
jamescook19296fd2016-12-09 01:23:47153 "//chromeos",
sky23ca8fd2016-10-07 23:40:12154 "//components/signin/core/account_id",
155 "//components/user_manager:user_manager",
156 "//device/bluetooth",
mswb00a80d72016-11-30 20:17:06157 "//services/ui/public/interfaces",
sky23ca8fd2016-10-07 23:40:12158 "//skia",
159 "//testing/gtest",
160 "//ui/accessibility",
161 "//ui/app_list:test_support",
162 "//ui/app_list/presenter",
mswfb834642017-01-04 22:50:05163 "//ui/app_list/presenter:test_support",
sky23ca8fd2016-10-07 23:40:12164 "//ui/aura",
165 "//ui/aura:test_support",
166 "//ui/base:test_support",
167 "//ui/compositor:test_support",
jamescook19296fd2016-12-09 01:23:47168 "//ui/display",
sky23ca8fd2016-10-07 23:40:12169 "//ui/display/types",
170 "//ui/events:events_base",
171 "//ui/events:test_support",
172 "//ui/events/devices",
173 "//ui/gl",
174 "//ui/gl:test_support",
175 "//ui/keyboard",
176 "//ui/message_center",
177 "//ui/views",
178 "//ui/views:test_support",
179 "//ui/wm",
180 ]
181
sky23ca8fd2016-10-07 23:40:12182 if (use_x11) {
183 deps += [ "//ui/gfx/x" ]
184 }
sky23ca8fd2016-10-07 23:40:12185}
186
187static_library("interactive_ui_test_support") {
188 testonly = true
189 configs += [ "//build/config:precompiled_headers" ]
190 public_deps = [
191 ":test_support_without_content",
192 "//ash",
193 ]
194 sources = [
195 "ash_interactive_ui_test_base.cc",
196 "ash_interactive_ui_test_base.h",
197 ]
198 deps = [
199 ":test_support_with_content",
200 "//base",
201 "//skia",
202 "//testing/gtest",
203 "//ui/aura",
204 "//ui/base",
205 "//ui/gl:test_support",
206 ]
207}