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