blob: d90861d7fdc95cc0a923e7b2c79d7340be6819ba [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",
111 "test_keyboard_ui.cc",
112 "test_keyboard_ui.h",
sky23ca8fd2016-10-07 23:40:12113 "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",
sky23ca8fd2016-10-07 23:40:12119 "test_shell_delegate.cc",
120 "test_shell_delegate.h",
121 "test_suite.cc",
122 "test_suite.h",
123 "test_suite_init.h",
124 "test_suite_init.mm",
sky23ca8fd2016-10-07 23:40:12125 "test_system_tray_item.cc",
126 "test_system_tray_item.h",
127 "test_wallpaper_delegate.cc",
128 "test_wallpaper_delegate.h",
jamescook19296fd2016-12-09 01:23:47129 "tray_cast_test_api.cc",
130 "tray_cast_test_api.h",
sky23ca8fd2016-10-07 23:40:12131 "ui_controls_factory_ash.cc",
132 "ui_controls_factory_ash.h",
133 "user_metrics_recorder_test_api.cc",
134 "user_metrics_recorder_test_api.h",
135 ]
136 configs += [ "//build/config:precompiled_headers" ]
137
138 public_deps = [
139 "//ash",
rjkroege72f8154f2016-10-29 00:49:02140 "//ui/display:display_manager_test_api",
sky23ca8fd2016-10-07 23:40:12141 ]
142 deps = [
143 "//ash/common/test:test_support",
jamescook8800b8232016-10-19 12:46:27144 "//ash/public/cpp",
erg8f7f2a62016-11-03 00:20:20145 "//ash/public/interfaces",
sky23ca8fd2016-10-07 23:40:12146 "//ash/resources",
147 "//base:i18n",
148 "//base/test:test_support",
jamescook19296fd2016-12-09 01:23:47149 "//chromeos",
sky23ca8fd2016-10-07 23:40:12150 "//components/signin/core/account_id",
151 "//components/user_manager:user_manager",
152 "//device/bluetooth",
mswb00a80d72016-11-30 20:17:06153 "//services/ui/public/interfaces",
sky23ca8fd2016-10-07 23:40:12154 "//skia",
155 "//testing/gtest",
156 "//ui/accessibility",
157 "//ui/app_list:test_support",
158 "//ui/app_list/presenter",
159 "//ui/aura",
160 "//ui/aura:test_support",
161 "//ui/base:test_support",
162 "//ui/compositor:test_support",
jamescook19296fd2016-12-09 01:23:47163 "//ui/display",
sky23ca8fd2016-10-07 23:40:12164 "//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
sky23ca8fd2016-10-07 23:40:12177 if (use_x11) {
178 deps += [ "//ui/gfx/x" ]
179 }
sky23ca8fd2016-10-07 23:40:12180}
181
182static_library("interactive_ui_test_support") {
183 testonly = true
184 configs += [ "//build/config:precompiled_headers" ]
185 public_deps = [
186 ":test_support_without_content",
187 "//ash",
188 ]
189 sources = [
190 "ash_interactive_ui_test_base.cc",
191 "ash_interactive_ui_test_base.h",
192 ]
193 deps = [
194 ":test_support_with_content",
195 "//base",
196 "//skia",
197 "//testing/gtest",
198 "//ui/aura",
199 "//ui/base",
200 "//ui/gl:test_support",
201 ]
202}