sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 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 = [ |
jamescook | 19296fd | 2016-12-09 01:23:47 | [diff] [blame] | 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", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 76 | "../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", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 91 | "immersive_fullscreen_controller_test_api.cc", |
| 92 | "immersive_fullscreen_controller_test_api.h", |
erg | 8f7f2a6 | 2016-11-03 00:20:20 | [diff] [blame] | 93 | "lock_state_controller_test_api.cc", |
| 94 | "lock_state_controller_test_api.h", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 95 | "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", |
msw | fb83464 | 2017-01-04 22:50:05 | [diff] [blame] | 111 | "test_app_list_view_presenter_impl.cc", |
| 112 | "test_app_list_view_presenter_impl.h", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 113 | "test_keyboard_ui.cc", |
| 114 | "test_keyboard_ui.h", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 115 | "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", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 121 | "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", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 127 | "test_system_tray_item.cc", |
| 128 | "test_system_tray_item.h", |
| 129 | "test_wallpaper_delegate.cc", |
| 130 | "test_wallpaper_delegate.h", |
jamescook | 19296fd | 2016-12-09 01:23:47 | [diff] [blame] | 131 | "tray_cast_test_api.cc", |
| 132 | "tray_cast_test_api.h", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 133 | "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", |
sky | 307e358 | 2017-01-05 17:30:24 | [diff] [blame] | 137 | "wm_window_aura_test_api.cc", |
| 138 | "wm_window_aura_test_api.h", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 139 | ] |
| 140 | configs += [ "//build/config:precompiled_headers" ] |
| 141 | |
| 142 | public_deps = [ |
| 143 | "//ash", |
rjkroege | 72f8154f | 2016-10-29 00:49:02 | [diff] [blame] | 144 | "//ui/display:display_manager_test_api", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 145 | ] |
| 146 | deps = [ |
| 147 | "//ash/common/test:test_support", |
jamescook | 8800b823 | 2016-10-19 12:46:27 | [diff] [blame] | 148 | "//ash/public/cpp", |
erg | 8f7f2a6 | 2016-11-03 00:20:20 | [diff] [blame] | 149 | "//ash/public/interfaces", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 150 | "//ash/resources", |
| 151 | "//base:i18n", |
| 152 | "//base/test:test_support", |
jamescook | 19296fd | 2016-12-09 01:23:47 | [diff] [blame] | 153 | "//chromeos", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 154 | "//components/signin/core/account_id", |
| 155 | "//components/user_manager:user_manager", |
| 156 | "//device/bluetooth", |
msw | b00a80d7 | 2016-11-30 20:17:06 | [diff] [blame] | 157 | "//services/ui/public/interfaces", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 158 | "//skia", |
| 159 | "//testing/gtest", |
| 160 | "//ui/accessibility", |
| 161 | "//ui/app_list:test_support", |
| 162 | "//ui/app_list/presenter", |
msw | fb83464 | 2017-01-04 22:50:05 | [diff] [blame] | 163 | "//ui/app_list/presenter:test_support", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 164 | "//ui/aura", |
| 165 | "//ui/aura:test_support", |
| 166 | "//ui/base:test_support", |
| 167 | "//ui/compositor:test_support", |
jamescook | 19296fd | 2016-12-09 01:23:47 | [diff] [blame] | 168 | "//ui/display", |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 169 | "//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 | |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 182 | if (use_x11) { |
| 183 | deps += [ "//ui/gfx/x" ] |
| 184 | } |
sky | 23ca8fd | 2016-10-07 23:40:12 | [diff] [blame] | 185 | } |
| 186 | |
| 187 | static_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 | } |