OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 # Used to test ash with an aura backend. | 7 # Used to test ash with an aura backend. |
8 source_set("ash_with_aura_test_support") { | 8 source_set("ash_with_aura_test_support") { |
9 testonly = true | 9 testonly = true |
10 sources = [ | 10 sources = [ |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 # Internal target consumed by |test_support_with_content| and | 62 # Internal target consumed by |test_support_with_content| and |
63 # |test_support_without_content|. This target contains all the test support | 63 # |test_support_without_content|. This target contains all the test support |
64 # files, with the exception of an implementation of AshTestEnvironment. | 64 # files, with the exception of an implementation of AshTestEnvironment. |
65 # Consumers of ash should use one of |test_support_with_content| or | 65 # Consumers of ash should use one of |test_support_with_content| or |
66 # |test_support_without_content|. | 66 # |test_support_without_content|. |
67 static_library("test_support_common") { | 67 static_library("test_support_common") { |
68 testonly = true | 68 testonly = true |
69 visibility = [ ":*" ] | 69 visibility = [ ":*" ] |
70 sources = [ | 70 sources = [ |
| 71 # 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", |
71 "../shell/toplevel_window.cc", | 76 "../shell/toplevel_window.cc", |
72 "../shell/toplevel_window.h", | 77 "../shell/toplevel_window.h", |
73 "ash_md_test_base.cc", | 78 "ash_md_test_base.cc", |
74 "ash_md_test_base.h", | 79 "ash_md_test_base.h", |
75 "ash_test_base.cc", | 80 "ash_test_base.cc", |
76 "ash_test_base.h", | 81 "ash_test_base.h", |
77 "ash_test_environment.h", | 82 "ash_test_environment.h", |
78 "ash_test_helper.cc", | 83 "ash_test_helper.cc", |
79 "ash_test_helper.h", | 84 "ash_test_helper.h", |
80 "ash_test_views_delegate.cc", | 85 "ash_test_views_delegate.cc", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "test_shell_delegate.cc", | 119 "test_shell_delegate.cc", |
115 "test_shell_delegate.h", | 120 "test_shell_delegate.h", |
116 "test_suite.cc", | 121 "test_suite.cc", |
117 "test_suite.h", | 122 "test_suite.h", |
118 "test_suite_init.h", | 123 "test_suite_init.h", |
119 "test_suite_init.mm", | 124 "test_suite_init.mm", |
120 "test_system_tray_item.cc", | 125 "test_system_tray_item.cc", |
121 "test_system_tray_item.h", | 126 "test_system_tray_item.h", |
122 "test_wallpaper_delegate.cc", | 127 "test_wallpaper_delegate.cc", |
123 "test_wallpaper_delegate.h", | 128 "test_wallpaper_delegate.h", |
| 129 "tray_cast_test_api.cc", |
| 130 "tray_cast_test_api.h", |
124 "ui_controls_factory_ash.cc", | 131 "ui_controls_factory_ash.cc", |
125 "ui_controls_factory_ash.h", | 132 "ui_controls_factory_ash.h", |
126 "user_metrics_recorder_test_api.cc", | 133 "user_metrics_recorder_test_api.cc", |
127 "user_metrics_recorder_test_api.h", | 134 "user_metrics_recorder_test_api.h", |
128 ] | 135 ] |
129 configs += [ "//build/config:precompiled_headers" ] | 136 configs += [ "//build/config:precompiled_headers" ] |
130 | 137 |
131 public_deps = [ | 138 public_deps = [ |
132 "//ash", | 139 "//ash", |
133 "//ui/display:display_manager_test_api", | 140 "//ui/display:display_manager_test_api", |
134 ] | 141 ] |
135 deps = [ | 142 deps = [ |
136 "//ash/common/test:test_support", | 143 "//ash/common/test:test_support", |
137 "//ash/public/cpp", | 144 "//ash/public/cpp", |
138 "//ash/public/interfaces", | 145 "//ash/public/interfaces", |
139 "//ash/resources", | 146 "//ash/resources", |
140 "//base:i18n", | 147 "//base:i18n", |
141 "//base/test:test_support", | 148 "//base/test:test_support", |
| 149 "//chromeos", |
142 "//components/signin/core/account_id", | 150 "//components/signin/core/account_id", |
143 "//components/user_manager:user_manager", | 151 "//components/user_manager:user_manager", |
144 "//device/bluetooth", | 152 "//device/bluetooth", |
145 "//services/ui/public/interfaces", | 153 "//services/ui/public/interfaces", |
146 "//skia", | 154 "//skia", |
147 "//testing/gtest", | 155 "//testing/gtest", |
148 "//ui/accessibility", | 156 "//ui/accessibility", |
149 "//ui/app_list:test_support", | 157 "//ui/app_list:test_support", |
150 "//ui/app_list/presenter", | 158 "//ui/app_list/presenter", |
151 "//ui/aura", | 159 "//ui/aura", |
152 "//ui/aura:test_support", | 160 "//ui/aura:test_support", |
153 "//ui/base:test_support", | 161 "//ui/base:test_support", |
154 "//ui/compositor:test_support", | 162 "//ui/compositor:test_support", |
| 163 "//ui/display", |
155 "//ui/display/types", | 164 "//ui/display/types", |
156 "//ui/events:events_base", | 165 "//ui/events:events_base", |
157 "//ui/events:test_support", | 166 "//ui/events:test_support", |
158 "//ui/events/devices", | 167 "//ui/events/devices", |
159 "//ui/gl", | 168 "//ui/gl", |
160 "//ui/gl:test_support", | 169 "//ui/gl:test_support", |
161 "//ui/keyboard", | 170 "//ui/keyboard", |
162 "//ui/message_center", | 171 "//ui/message_center", |
163 "//ui/views", | 172 "//ui/views", |
164 "//ui/views:test_support", | 173 "//ui/views:test_support", |
165 "//ui/wm", | 174 "//ui/wm", |
166 ] | 175 ] |
167 | 176 |
168 if (is_win) { | |
169 deps += [ "//ui/platform_window/win" ] | |
170 } | |
171 | |
172 if (use_x11) { | 177 if (use_x11) { |
173 deps += [ "//ui/gfx/x" ] | 178 deps += [ "//ui/gfx/x" ] |
174 } | 179 } |
175 | |
176 if (is_chromeos) { | |
177 deps += [ | |
178 "//chromeos", | |
179 "//ui/display", | |
180 ] | |
181 | |
182 sources += [ | |
183 "../laser/laser_pointer_controller_test_api.cc", | |
184 "../laser/laser_pointer_controller_test_api.h", | |
185 "../laser/laser_pointer_points_test_api.cc", | |
186 "../laser/laser_pointer_points_test_api.h", | |
187 "tray_cast_test_api.cc", | |
188 "tray_cast_test_api.h", | |
189 ] | |
190 } | |
191 } | 180 } |
192 | 181 |
193 static_library("interactive_ui_test_support") { | 182 static_library("interactive_ui_test_support") { |
194 testonly = true | 183 testonly = true |
195 configs += [ "//build/config:precompiled_headers" ] | 184 configs += [ "//build/config:precompiled_headers" ] |
196 public_deps = [ | 185 public_deps = [ |
197 ":test_support_without_content", | 186 ":test_support_without_content", |
198 "//ash", | 187 "//ash", |
199 ] | 188 ] |
200 sources = [ | 189 sources = [ |
201 "ash_interactive_ui_test_base.cc", | 190 "ash_interactive_ui_test_base.cc", |
202 "ash_interactive_ui_test_base.h", | 191 "ash_interactive_ui_test_base.h", |
203 ] | 192 ] |
204 deps = [ | 193 deps = [ |
205 ":test_support_with_content", | 194 ":test_support_with_content", |
206 "//base", | 195 "//base", |
207 "//skia", | 196 "//skia", |
208 "//testing/gtest", | 197 "//testing/gtest", |
209 "//ui/aura", | 198 "//ui/aura", |
210 "//ui/base", | 199 "//ui/base", |
211 "//ui/gl:test_support", | 200 "//ui/gl:test_support", |
212 ] | 201 ] |
213 } | 202 } |
OLD | NEW |