| 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("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
| 8 import("//mojo/public/mojo_application_manifest.gni") | 8 import("//mojo/public/mojo_application_manifest.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//tools/grit/repack.gni") | 10 import("//tools/grit/repack.gni") |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 public_deps = [ | 120 public_deps = [ |
| 121 ":mus", | 121 ":mus", |
| 122 ] | 122 ] |
| 123 if (!is_component_build) { | 123 if (!is_component_build) { |
| 124 deps = [ | 124 deps = [ |
| 125 "//mojo/gles2", | 125 "//mojo/gles2", |
| 126 ] | 126 ] |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 source_set("test_support") { |
| 131 testonly = true |
| 132 |
| 133 sources = [ |
| 134 "../run_all_unittests.cc", |
| 135 "../run_all_unittests.h", |
| 136 "../test/native_widget_factory_mus.cc", |
| 137 "views_mus_test_suite.cc", |
| 138 "views_mus_test_suite.h", |
| 139 ] |
| 140 |
| 141 deps = [ |
| 142 ":mus", |
| 143 "//base", |
| 144 "//base/test:test_support", |
| 145 "//services/shell/background:lib", |
| 146 "//services/shell/background/tests:test_support", |
| 147 "//services/shell/public/cpp:sources", |
| 148 "//testing/gtest", |
| 149 "//ui/aura", |
| 150 "//ui/gl:test_support", |
| 151 "//ui/resources", |
| 152 "//ui/resources:ui_test_pak", |
| 153 "//ui/views", |
| 154 "//ui/views:test_support_internal", |
| 155 ] |
| 156 |
| 157 data_deps = [ |
| 158 "//ui/resources:ui_test_pak_data", |
| 159 ] |
| 160 } |
| 161 |
| 130 test("views_mus_unittests") { | 162 test("views_mus_unittests") { |
| 131 testonly = true | 163 testonly = true |
| 132 | 164 |
| 133 configs += [ "//build/config:precompiled_headers" ] | 165 configs += [ "//build/config:precompiled_headers" ] |
| 134 | 166 |
| 135 # TODO(sky): add more files. | 167 # TODO(sky): add more files. |
| 136 sources = [ | 168 sources = [ |
| 137 "../run_all_unittests.cc", | |
| 138 "../run_all_unittests.h", | |
| 139 "../test/native_widget_factory_mus.cc", | |
| 140 "../view_targeter_unittest.cc", | 169 "../view_targeter_unittest.cc", |
| 141 "../widget/native_widget_unittest.cc", | 170 "../widget/native_widget_unittest.cc", |
| 142 "../widget/widget_unittest.cc", | 171 "../widget/widget_unittest.cc", |
| 143 "native_widget_mus_unittest.cc", | 172 "native_widget_mus_unittest.cc", |
| 144 "platform_window_mus_unittest.cc", | 173 "platform_window_mus_unittest.cc", |
| 145 "run_all_unittests_mus.cc", | 174 "run_all_unittests_mus.cc", |
| 146 "screen_mus_unittest.cc", | 175 "screen_mus_unittest.cc", |
| 147 "window_manager_connection_unittest.cc", | 176 "window_manager_connection_unittest.cc", |
| 148 ] | 177 ] |
| 149 | 178 |
| 150 deps = [ | 179 deps = [ |
| 151 ":mus", | 180 ":mus", |
| 181 ":test_support", |
| 152 "//base", | 182 "//base", |
| 153 "//base:i18n", | 183 "//base:i18n", |
| 154 "//base/test:test_support", | |
| 155 "//cc", | 184 "//cc", |
| 156 "//components/mus/public/cpp", | 185 "//components/mus/public/cpp", |
| 157 "//components/mus/public/interfaces", | 186 "//components/mus/public/interfaces", |
| 158 "//services/shell/background:lib", | 187 "//services/shell/background:main", # Provides main(). |
| 159 "//services/shell/background:main", | |
| 160 "//services/shell/background/tests:test_support", | |
| 161 "//services/shell/public/cpp:sources", | |
| 162 "//services/shell/runner/host:lib", | |
| 163 "//skia", | 188 "//skia", |
| 164 "//testing/gtest", | 189 "//testing/gtest", |
| 165 "//third_party/icu", | 190 "//third_party/icu", |
| 166 "//ui/accessibility", | 191 "//ui/accessibility", |
| 167 "//ui/aura", | 192 "//ui/aura", |
| 168 "//ui/aura:test_support", | 193 "//ui/aura:test_support", |
| 169 "//ui/base", | 194 "//ui/base", |
| 170 "//ui/base:test_support", | 195 "//ui/base:test_support", |
| 171 "//ui/base/ime", | 196 "//ui/base/ime", |
| 172 "//ui/compositor:test_support", | 197 "//ui/compositor:test_support", |
| 173 "//ui/events:dom_keycode_converter", | 198 "//ui/events:dom_keycode_converter", |
| 174 "//ui/events:events_base", | 199 "//ui/events:events_base", |
| 175 "//ui/events:test_support", | 200 "//ui/events:test_support", |
| 176 "//ui/events/platform", | 201 "//ui/events/platform", |
| 177 "//ui/gfx:test_support", | 202 "//ui/gfx:test_support", |
| 178 "//ui/gfx/geometry", | 203 "//ui/gfx/geometry", |
| 179 "//ui/gl:test_support", | |
| 180 "//ui/resources", | |
| 181 "//ui/resources:ui_test_pak", | |
| 182 "//ui/strings", | 204 "//ui/strings", |
| 183 "//ui/touch_selection", | |
| 184 "//ui/views", | 205 "//ui/views", |
| 185 "//ui/views:test_support_internal", | 206 "//ui/views:test_support_internal", |
| 186 "//ui/wm", | 207 "//ui/wm", |
| 187 "//url", | 208 "//url", |
| 188 ] | 209 ] |
| 189 | 210 |
| 190 data_deps = [ | 211 data_deps = [ |
| 191 ":unittests_manifest", | 212 ":unittests_manifest", |
| 192 "//mash/wm", | 213 "//mash/wm", |
| 193 ] | 214 ] |
| 194 | 215 |
| 195 # TODO(thakis): This should be a data_deps on //ui/resources:ui_test_pak, but | |
| 196 # that has no effect. (See similar TODOs elsewhere ui_test.pak is listed) | |
| 197 data = [ | |
| 198 "$root_out_dir/ui_test.pak", | |
| 199 ] | |
| 200 | |
| 201 if (is_win) { | 216 if (is_win) { |
| 202 deps += [ | 217 deps += [ |
| 203 "//build/win:default_exe_manifest", | 218 "//build/win:default_exe_manifest", |
| 204 "//third_party/iaccessible2", | 219 "//third_party/iaccessible2", |
| 205 "//third_party/wtl", | 220 "//third_party/wtl", |
| 206 ] | 221 ] |
| 207 libs = [ | 222 libs = [ |
| 208 "imm32.lib", | 223 "imm32.lib", |
| 209 "oleacc.lib", | 224 "oleacc.lib", |
| 210 "comctl32.lib", | 225 "comctl32.lib", |
| 211 ] | 226 ] |
| 212 } | 227 } |
| 213 | 228 |
| 214 if (use_x11) { | 229 if (use_x11) { |
| 215 configs += [ | 230 configs += [ |
| 216 "//build/config/linux:x11", | 231 "//build/config/linux:x11", |
| 217 "//build/config/linux:xext", | 232 "//build/config/linux:xext", |
| 218 ] | 233 ] |
| 219 deps += [ | 234 deps += [ |
| 220 "//ui/events/devices", | 235 "//ui/events/devices", |
| 221 "//ui/events/platform/x11", | 236 "//ui/events/platform/x11", |
| 222 "//ui/gfx/x", | 237 "//ui/gfx/x", |
| 223 ] | 238 ] |
| 224 } | 239 } |
| 225 } | 240 } |
| 226 | 241 |
| 242 # Tests that must run sequentially because they access system-wide features |
| 243 # like capture. |
| 244 test("views_mus_interactive_ui_tests") { |
| 245 testonly = true |
| 246 |
| 247 configs += [ "//build/config:precompiled_headers" ] |
| 248 |
| 249 sources = [ |
| 250 "../widget/widget_interactive_uitest.cc", |
| 251 "interactive_ui_tests_mus.cc", |
| 252 ] |
| 253 |
| 254 deps = [ |
| 255 ":mus", |
| 256 ":test_support", |
| 257 "//base", |
| 258 "//services/shell/background:main", # Provides main(). |
| 259 "//ui/aura", |
| 260 "//ui/base", |
| 261 "//ui/base/ime", |
| 262 "//ui/events:events_base", |
| 263 "//ui/events:test_support", |
| 264 "//ui/gl:test_support", |
| 265 "//ui/touch_selection", |
| 266 "//ui/views", |
| 267 "//ui/views:test_support_internal", |
| 268 "//ui/wm", |
| 269 ] |
| 270 |
| 271 data_deps = [ |
| 272 ":interactive_ui_tests_manifest", |
| 273 "//mash/wm", |
| 274 ] |
| 275 |
| 276 if (is_win) { |
| 277 deps += [ |
| 278 "//build/win:default_exe_manifest", |
| 279 "//third_party/iaccessible2", |
| 280 "//third_party/wtl", |
| 281 ] |
| 282 libs = [ |
| 283 "imm32.lib", |
| 284 "oleacc.lib", |
| 285 "comctl32.lib", |
| 286 ] |
| 287 } |
| 288 } |
| 289 |
| 227 mojo_application_manifest("unittests_manifest") { | 290 mojo_application_manifest("unittests_manifest") { |
| 228 type = "exe" | 291 type = "exe" |
| 229 application_name = "views_mus_unittests" | 292 application_name = "views_mus_unittests" |
| 230 source = "unittests_manifest.json" | 293 source = "unittests_manifest.json" |
| 231 } | 294 } |
| 232 | 295 |
| 296 mojo_application_manifest("interactive_ui_tests_manifest") { |
| 297 type = "exe" |
| 298 application_name = "views_mus_interactive_ui_tests" |
| 299 source = "interactive_ui_tests_manifest.json" |
| 300 } |
| 301 |
| 233 group("for_component") { | 302 group("for_component") { |
| 234 public_deps = [ | 303 public_deps = [ |
| 235 ":mus", | 304 ":mus", |
| 236 ] | 305 ] |
| 237 deps = [ | 306 deps = [ |
| 238 "//mojo/gles2", | 307 "//mojo/gles2", |
| 239 ] | 308 ] |
| 240 } | 309 } |
| OLD | NEW |