| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//services/catalog/public/tools/catalog.gni") | |
| 8 import("//services/service_manager/public/cpp/service.gni") | 7 import("//services/service_manager/public/cpp/service.gni") |
| 9 import("//services/service_manager/public/service_manifest.gni") | 8 import("//services/service_manager/public/service_manifest.gni") |
| 10 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 11 import("//tools/grit/repack.gni") | 10 import("//tools/grit/repack.gni") |
| 12 | 11 |
| 13 component("mus") { | 12 component("mus") { |
| 14 output_name = "ui_views_mus_lib" | 13 output_name = "ui_views_mus_lib" |
| 15 | 14 |
| 16 sources = [ | 15 sources = [ |
| 17 "aura_init.cc", | 16 "aura_init.cc", |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "../test/native_widget_factory_aura_mus.cc", | 114 "../test/native_widget_factory_aura_mus.cc", |
| 116 "test_utils.h", | 115 "test_utils.h", |
| 117 "views_mus_test_suite.cc", | 116 "views_mus_test_suite.cc", |
| 118 "views_mus_test_suite.h", | 117 "views_mus_test_suite.h", |
| 119 ] | 118 ] |
| 120 | 119 |
| 121 deps = [ | 120 deps = [ |
| 122 ":mus", | 121 ":mus", |
| 123 "//base", | 122 "//base", |
| 124 "//base/test:test_support", | 123 "//base/test:test_support", |
| 125 "//mojo/edk/system", | |
| 126 "//services/catalog:lib", | |
| 127 "//services/service_manager/background:lib", | 124 "//services/service_manager/background:lib", |
| 128 "//services/service_manager/public/cpp:sources", | 125 "//services/service_manager/public/cpp:sources", |
| 129 "//services/ui/common:mus_common", | 126 "//services/ui/common:mus_common", |
| 130 "//testing/gtest", | 127 "//testing/gtest", |
| 131 "//ui/aura", | 128 "//ui/aura", |
| 132 "//ui/aura:test_support", | 129 "//ui/aura:test_support", |
| 133 "//ui/gl:test_support", | 130 "//ui/gl:test_support", |
| 134 "//ui/resources", | 131 "//ui/resources", |
| 135 "//ui/resources:ui_test_pak", | 132 "//ui/resources:ui_test_pak", |
| 136 "//ui/views", | 133 "//ui/views", |
| 137 "//ui/views:test_support_internal", | 134 "//ui/views:test_support_internal", |
| 138 ] | 135 ] |
| 139 | 136 |
| 140 data_deps = [ | 137 data_deps = [ |
| 141 ":views_mus_tests_catalog", | |
| 142 "//ui/resources:ui_test_pak_data", | 138 "//ui/resources:ui_test_pak_data", |
| 143 ] | 139 ] |
| 144 } | 140 } |
| 145 | 141 |
| 146 test("views_mus_unittests") { | 142 test("views_mus_unittests") { |
| 147 testonly = true | 143 testonly = true |
| 148 | 144 |
| 149 sources = [ | 145 sources = [ |
| 150 "desktop_window_tree_host_mus_unittest.cc", | 146 "desktop_window_tree_host_mus_unittest.cc", |
| 151 "pointer_watcher_event_router_unittest.cc", | 147 "pointer_watcher_event_router_unittest.cc", |
| 152 "run_all_unittests_mus.cc", | 148 "run_all_unittests_mus.cc", |
| 153 "screen_mus_unittest.cc", | 149 "screen_mus_unittest.cc", |
| 154 ] | 150 ] |
| 155 | 151 |
| 156 configs += [ "//build/config:precompiled_headers" ] | 152 configs += [ "//build/config:precompiled_headers" ] |
| 157 | 153 |
| 158 deps = [ | 154 deps = [ |
| 159 ":mus", | 155 ":mus", |
| 160 ":test_support", | 156 ":test_support", |
| 161 "//base", | 157 "//base", |
| 162 "//base:i18n", | 158 "//base:i18n", |
| 163 "//base/test:test_support", | 159 "//base/test:test_support", |
| 164 "//cc", | 160 "//cc", |
| 165 "//net", | 161 "//net", |
| 162 "//services/service_manager/background:main", # Provides main(). |
| 166 "//services/ui/public/interfaces", | 163 "//services/ui/public/interfaces", |
| 167 "//skia", | 164 "//skia", |
| 168 "//testing/gtest", | 165 "//testing/gtest", |
| 169 "//third_party/icu", | 166 "//third_party/icu", |
| 170 "//ui/accessibility", | 167 "//ui/accessibility", |
| 171 "//ui/aura", | 168 "//ui/aura", |
| 172 "//ui/aura:test_support", | 169 "//ui/aura:test_support", |
| 173 "//ui/base", | 170 "//ui/base", |
| 174 "//ui/base:test_support", | 171 "//ui/base:test_support", |
| 175 "//ui/base/ime", | 172 "//ui/base/ime", |
| 176 "//ui/compositor:test_support", | 173 "//ui/compositor:test_support", |
| 177 "//ui/events:dom_keycode_converter", | 174 "//ui/events:dom_keycode_converter", |
| 178 "//ui/events:events_base", | 175 "//ui/events:events_base", |
| 179 "//ui/events:test_support", | 176 "//ui/events:test_support", |
| 180 "//ui/events/platform", | 177 "//ui/events/platform", |
| 181 "//ui/gfx:test_support", | 178 "//ui/gfx:test_support", |
| 182 "//ui/gfx/geometry", | 179 "//ui/gfx/geometry", |
| 183 "//ui/native_theme", | 180 "//ui/native_theme", |
| 184 "//ui/strings", | 181 "//ui/strings", |
| 185 "//ui/touch_selection", | 182 "//ui/touch_selection", |
| 186 "//ui/views", | 183 "//ui/views", |
| 187 "//ui/views:test_support_internal", | 184 "//ui/views:test_support_internal", |
| 188 "//ui/views:views_unittests_sources", | 185 "//ui/views:views_unittests_sources", |
| 189 "//ui/wm", | 186 "//ui/wm", |
| 190 "//url", | 187 "//url", |
| 191 ] | 188 ] |
| 192 | 189 |
| 193 data_deps = [ | 190 data_deps = [ |
| 194 ":views_mus_tests_catalog_copy", | 191 ":unittests_manifest", |
| 195 "//services/ui/ime/test_ime_driver", | 192 "//services/ui/ime/test_ime_driver", |
| 196 "//services/ui/test_wm", | 193 "//services/ui/test_wm", |
| 197 ] | 194 ] |
| 198 | 195 |
| 199 if (is_win) { | 196 if (is_win) { |
| 200 deps += [ | 197 deps += [ |
| 201 "//build/win:default_exe_manifest", | 198 "//build/win:default_exe_manifest", |
| 202 "//third_party/iaccessible2", | 199 "//third_party/iaccessible2", |
| 203 "//third_party/wtl", | 200 "//third_party/wtl", |
| 204 ] | 201 ] |
| (...skipping 25 matching lines...) Expand all Loading... |
| 230 sources = [ | 227 sources = [ |
| 231 "../widget/widget_interactive_uitest.cc", | 228 "../widget/widget_interactive_uitest.cc", |
| 232 "clipboard_unittest.cc", | 229 "clipboard_unittest.cc", |
| 233 "interactive_ui_tests_mus.cc", | 230 "interactive_ui_tests_mus.cc", |
| 234 ] | 231 ] |
| 235 | 232 |
| 236 deps = [ | 233 deps = [ |
| 237 ":mus", | 234 ":mus", |
| 238 ":test_support", | 235 ":test_support", |
| 239 "//base", | 236 "//base", |
| 237 "//services/service_manager/background:main", # Provides main(). |
| 240 "//testing/gmock", | 238 "//testing/gmock", |
| 241 "//testing/gtest", | 239 "//testing/gtest", |
| 242 "//ui/aura", | 240 "//ui/aura", |
| 243 "//ui/base", | 241 "//ui/base", |
| 244 "//ui/base/ime", | 242 "//ui/base/ime", |
| 245 "//ui/events:events_base", | 243 "//ui/events:events_base", |
| 246 "//ui/events:test_support", | 244 "//ui/events:test_support", |
| 247 "//ui/gl:test_support", | 245 "//ui/gl:test_support", |
| 248 "//ui/touch_selection", | 246 "//ui/touch_selection", |
| 249 "//ui/views", | 247 "//ui/views", |
| 250 "//ui/views:test_support_internal", | 248 "//ui/views:test_support_internal", |
| 251 "//ui/wm", | 249 "//ui/wm", |
| 252 ] | 250 ] |
| 253 | 251 |
| 254 data_deps = [ | 252 data_deps = [ |
| 255 ":views_mus_tests_catalog_copy", | 253 ":interactive_ui_tests_manifest", |
| 256 "//services/ui/test_wm", | 254 "//services/ui/test_wm", |
| 257 ] | 255 ] |
| 258 | 256 |
| 259 if (is_win) { | 257 if (is_win) { |
| 260 deps += [ | 258 deps += [ |
| 261 "//build/win:default_exe_manifest", | 259 "//build/win:default_exe_manifest", |
| 262 "//third_party/iaccessible2", | 260 "//third_party/iaccessible2", |
| 263 "//third_party/wtl", | 261 "//third_party/wtl", |
| 264 ] | 262 ] |
| 265 libs = [ | 263 libs = [ |
| 266 "imm32.lib", | 264 "imm32.lib", |
| 267 "oleacc.lib", | 265 "oleacc.lib", |
| 268 "comctl32.lib", | 266 "comctl32.lib", |
| 269 ] | 267 ] |
| 270 } | 268 } |
| 271 } | 269 } |
| 272 | 270 |
| 273 service_manifest("unittests_manifest") { | 271 service_manifest("unittests_manifest") { |
| 274 name = "views_mus_unittests" | 272 name = "views_mus_unittests" |
| 275 source = "unittests_manifest.json" | 273 source = "unittests_manifest.json" |
| 276 } | 274 } |
| 277 | 275 |
| 278 service_manifest("interactive_ui_tests_manifest") { | 276 service_manifest("interactive_ui_tests_manifest") { |
| 279 name = "views_mus_interactive_ui_tests" | 277 name = "views_mus_interactive_ui_tests" |
| 280 source = "interactive_ui_tests_manifest.json" | 278 source = "interactive_ui_tests_manifest.json" |
| 281 } | 279 } |
| 282 | |
| 283 catalog("views_mus_tests_catalog") { | |
| 284 testonly = true | |
| 285 | |
| 286 embedded_services = [ | |
| 287 ":unittests_manifest", | |
| 288 ":interactive_ui_tests_manifest", | |
| 289 ] | |
| 290 | |
| 291 standalone_services = [ "//services/ui/test_wm:manifest" ] | |
| 292 | |
| 293 catalog_deps = [ "//mash:catalog" ] | |
| 294 } | |
| 295 | |
| 296 copy("views_mus_tests_catalog_copy") { | |
| 297 testonly = true | |
| 298 sources = get_target_outputs(":views_mus_tests_catalog") | |
| 299 outputs = [ | |
| 300 "${root_out_dir}/views_mus_tests_catalog.json", | |
| 301 ] | |
| 302 deps = [ | |
| 303 ":views_mus_tests_catalog", | |
| 304 ] | |
| 305 } | |
| OLD | NEW |