| 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 | |
| 162 test("views_mus_unittests") { | 130 test("views_mus_unittests") { |
| 163 testonly = true | 131 testonly = true |
| 164 | 132 |
| 165 configs += [ "//build/config:precompiled_headers" ] | 133 configs += [ "//build/config:precompiled_headers" ] |
| 166 | 134 |
| 167 # TODO(sky): add more files. | 135 # TODO(sky): add more files. |
| 168 sources = [ | 136 sources = [ |
| 137 "../run_all_unittests.cc", |
| 138 "../run_all_unittests.h", |
| 139 "../test/native_widget_factory_mus.cc", |
| 169 "../view_targeter_unittest.cc", | 140 "../view_targeter_unittest.cc", |
| 170 "../widget/native_widget_unittest.cc", | 141 "../widget/native_widget_unittest.cc", |
| 171 "../widget/widget_unittest.cc", | 142 "../widget/widget_unittest.cc", |
| 172 "native_widget_mus_unittest.cc", | 143 "native_widget_mus_unittest.cc", |
| 173 "platform_window_mus_unittest.cc", | 144 "platform_window_mus_unittest.cc", |
| 174 "run_all_unittests_mus.cc", | 145 "run_all_unittests_mus.cc", |
| 175 "screen_mus_unittest.cc", | 146 "screen_mus_unittest.cc", |
| 176 "window_manager_connection_unittest.cc", | 147 "window_manager_connection_unittest.cc", |
| 177 ] | 148 ] |
| 178 | 149 |
| 179 deps = [ | 150 deps = [ |
| 180 ":mus", | 151 ":mus", |
| 181 ":test_support", | |
| 182 "//base", | 152 "//base", |
| 183 "//base:i18n", | 153 "//base:i18n", |
| 154 "//base/test:test_support", |
| 184 "//cc", | 155 "//cc", |
| 185 "//components/mus/public/cpp", | 156 "//components/mus/public/cpp", |
| 186 "//components/mus/public/interfaces", | 157 "//components/mus/public/interfaces", |
| 187 "//services/shell/background:main", # Provides main(). | 158 "//services/shell/background:lib", |
| 159 "//services/shell/background:main", |
| 160 "//services/shell/background/tests:test_support", |
| 161 "//services/shell/public/cpp:sources", |
| 162 "//services/shell/runner/host:lib", |
| 188 "//skia", | 163 "//skia", |
| 189 "//testing/gtest", | 164 "//testing/gtest", |
| 190 "//third_party/icu", | 165 "//third_party/icu", |
| 191 "//ui/accessibility", | 166 "//ui/accessibility", |
| 192 "//ui/aura", | 167 "//ui/aura", |
| 193 "//ui/aura:test_support", | 168 "//ui/aura:test_support", |
| 194 "//ui/base", | 169 "//ui/base", |
| 195 "//ui/base:test_support", | 170 "//ui/base:test_support", |
| 196 "//ui/base/ime", | 171 "//ui/base/ime", |
| 197 "//ui/compositor:test_support", | 172 "//ui/compositor:test_support", |
| 198 "//ui/events:dom_keycode_converter", | 173 "//ui/events:dom_keycode_converter", |
| 199 "//ui/events:events_base", | 174 "//ui/events:events_base", |
| 200 "//ui/events:test_support", | 175 "//ui/events:test_support", |
| 201 "//ui/events/platform", | 176 "//ui/events/platform", |
| 202 "//ui/gfx:test_support", | 177 "//ui/gfx:test_support", |
| 203 "//ui/gfx/geometry", | 178 "//ui/gfx/geometry", |
| 179 "//ui/gl:test_support", |
| 180 "//ui/resources", |
| 181 "//ui/resources:ui_test_pak", |
| 204 "//ui/strings", | 182 "//ui/strings", |
| 183 "//ui/touch_selection", |
| 205 "//ui/views", | 184 "//ui/views", |
| 206 "//ui/views:test_support_internal", | 185 "//ui/views:test_support_internal", |
| 207 "//ui/wm", | 186 "//ui/wm", |
| 208 "//url", | 187 "//url", |
| 209 ] | 188 ] |
| 210 | 189 |
| 211 data_deps = [ | 190 data_deps = [ |
| 212 ":unittests_manifest", | 191 ":unittests_manifest", |
| 213 "//mash/wm", | 192 "//mash/wm", |
| 214 ] | 193 ] |
| 215 | 194 |
| 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 |
| 216 if (is_win) { | 201 if (is_win) { |
| 217 deps += [ | 202 deps += [ |
| 218 "//build/win:default_exe_manifest", | 203 "//build/win:default_exe_manifest", |
| 219 "//third_party/iaccessible2", | 204 "//third_party/iaccessible2", |
| 220 "//third_party/wtl", | 205 "//third_party/wtl", |
| 221 ] | 206 ] |
| 222 libs = [ | 207 libs = [ |
| 223 "imm32.lib", | 208 "imm32.lib", |
| 224 "oleacc.lib", | 209 "oleacc.lib", |
| 225 "comctl32.lib", | 210 "comctl32.lib", |
| 226 ] | 211 ] |
| 227 } | 212 } |
| 228 | 213 |
| 229 if (use_x11) { | 214 if (use_x11) { |
| 230 configs += [ | 215 configs += [ |
| 231 "//build/config/linux:x11", | 216 "//build/config/linux:x11", |
| 232 "//build/config/linux:xext", | 217 "//build/config/linux:xext", |
| 233 ] | 218 ] |
| 234 deps += [ | 219 deps += [ |
| 235 "//ui/events/devices", | 220 "//ui/events/devices", |
| 236 "//ui/events/platform/x11", | 221 "//ui/events/platform/x11", |
| 237 "//ui/gfx/x", | 222 "//ui/gfx/x", |
| 238 ] | 223 ] |
| 239 } | 224 } |
| 240 } | 225 } |
| 241 | 226 |
| 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 | |
| 290 mojo_application_manifest("unittests_manifest") { | 227 mojo_application_manifest("unittests_manifest") { |
| 291 type = "exe" | 228 type = "exe" |
| 292 application_name = "views_mus_unittests" | 229 application_name = "views_mus_unittests" |
| 293 source = "unittests_manifest.json" | 230 source = "unittests_manifest.json" |
| 294 } | 231 } |
| 295 | 232 |
| 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 | |
| 302 group("for_component") { | 233 group("for_component") { |
| 303 public_deps = [ | 234 public_deps = [ |
| 304 ":mus", | 235 ":mus", |
| 305 ] | 236 ] |
| 306 deps = [ | 237 deps = [ |
| 307 "//mojo/gles2", | 238 "//mojo/gles2", |
| 308 ] | 239 ] |
| 309 } | 240 } |
| OLD | NEW |