| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.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 | 9 |
| 10 source_set("lib") { | 10 source_set("lib") { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 "//components/mus/public/interfaces", | 125 "//components/mus/public/interfaces", |
| 126 "//mojo/common", | 126 "//mojo/common", |
| 127 "//mojo/public/cpp/bindings:bindings", | 127 "//mojo/public/cpp/bindings:bindings", |
| 128 "//ui/mojo/geometry:interfaces", | 128 "//ui/mojo/geometry:interfaces", |
| 129 ] | 129 ] |
| 130 } | 130 } |
| 131 | 131 |
| 132 group("tests") { | 132 group("tests") { |
| 133 testonly = true | 133 testonly = true |
| 134 deps = [ | 134 deps = [ |
| 135 ":apptests", | 135 ":mus_ws_unittests", |
| 136 ":window_manager_unittests", | |
| 137 ] | 136 ] |
| 138 if (!is_android) { | 137 if (!is_android) { |
| 139 deps += | 138 deps += |
| 140 [ "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests" ] | 139 [ "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests" ] |
| 141 } | 140 } |
| 142 } | 141 } |
| 143 | 142 |
| 144 test("window_manager_unittests") { | 143 test("mus_ws_unittests") { |
| 145 sources = [ | 144 sources = [ |
| 146 "display_unittest.cc", | 145 "display_unittest.cc", |
| 147 "event_dispatcher_unittest.cc", | 146 "event_dispatcher_unittest.cc", |
| 148 "focus_controller_unittest.cc", | 147 "focus_controller_unittest.cc", |
| 149 "server_window_drawn_tracker_unittest.cc", | 148 "server_window_drawn_tracker_unittest.cc", |
| 150 "server_window_surface_manager_test_api.cc", | 149 "server_window_surface_manager_test_api.cc", |
| 151 "server_window_surface_manager_test_api.h", | 150 "server_window_surface_manager_test_api.h", |
| 152 "test_server_window_delegate.cc", | 151 "test_server_window_delegate.cc", |
| 153 "test_server_window_delegate.h", | 152 "test_server_window_delegate.h", |
| 154 "test_utils.cc", | 153 "test_utils.cc", |
| 155 "test_utils.h", | 154 "test_utils.h", |
| 156 "transient_windows_unittest.cc", | 155 "transient_windows_unittest.cc", |
| 157 "user_display_manager_unittest.cc", | 156 "user_display_manager_unittest.cc", |
| 158 "window_coordinate_conversions_unittest.cc", | 157 "window_coordinate_conversions_unittest.cc", |
| 159 "window_finder_unittest.cc", | 158 "window_finder_unittest.cc", |
| 159 "window_manager_client_unittest.cc", |
| 160 "window_tree_unittest.cc", | 160 "window_tree_unittest.cc", |
| 161 ] | 161 ] |
| 162 | 162 |
| 163 deps = [ | 163 deps = [ |
| 164 ":lib", | 164 ":lib", |
| 165 ":test_support", | 165 ":test_support", |
| 166 "//base", | 166 "//base", |
| 167 "//base/test:test_config", | 167 "//base/test:test_config", |
| 168 "//cc:cc", | 168 "//cc:cc", |
| 169 "//components/mus/common:mus_common", | 169 "//components/mus/common:mus_common", |
| 170 "//components/mus/public/cpp", | 170 "//components/mus/public/cpp", |
| 171 "//components/mus/public/cpp/tests:test_support", |
| 171 "//components/mus/public/interfaces", | 172 "//components/mus/public/interfaces", |
| 172 "//components/mus/surfaces", | 173 "//components/mus/surfaces", |
| 173 "//mojo/converters/geometry", | 174 "//mojo/converters/geometry", |
| 174 "//mojo/converters/input_events", | 175 "//mojo/converters/input_events", |
| 175 "//mojo/converters/transform", | 176 "//mojo/converters/transform", |
| 176 "//mojo/edk/test:run_all_unittests", | |
| 177 "//mojo/gles2", | 177 "//mojo/gles2", |
| 178 "//mojo/platform_handle:for_shared_library", | 178 "//mojo/platform_handle:for_component", |
| 179 "//mojo/public/cpp/bindings:bindings", | 179 "//mojo/public/cpp/bindings:bindings", |
| 180 "//mojo/shell/public/cpp:shell_test_support", |
| 181 "//mojo/shell/public/cpp:sources", |
| 182 "//mojo/shell/public/cpp:test_support", |
| 183 "//mojo/shell/public/cpp/test:run_all_shelltests", |
| 180 "//mojo/shell/public/interfaces", | 184 "//mojo/shell/public/interfaces", |
| 181 "//testing/gtest", | 185 "//testing/gtest", |
| 182 "//ui/events", | 186 "//ui/events", |
| 183 "//ui/gfx", | 187 "//ui/gfx", |
| 184 "//ui/gfx:test_support", | 188 "//ui/gfx:test_support", |
| 185 "//ui/gfx/geometry", | 189 "//ui/gfx/geometry", |
| 190 "//ui/gl", |
| 186 "//ui/mojo/geometry:interfaces", | 191 "//ui/mojo/geometry:interfaces", |
| 192 "//ui/mojo/geometry:util", |
| 187 ] | 193 ] |
| 188 | 194 |
| 189 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. | 195 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. |
| 190 deps += [ "//third_party/mesa:osmesa" ] | 196 deps += [ "//third_party/mesa:osmesa" ] |
| 191 } | 197 } |
| 192 } | |
| 193 | |
| 194 mojo_native_application("apptests") { | |
| 195 output_name = "mus_apptests" | |
| 196 testonly = true | |
| 197 | |
| 198 sources = [ | |
| 199 "window_manager_client_apptest.cc", | |
| 200 "window_tree_apptest.cc", | |
| 201 ] | |
| 202 | |
| 203 deps = [ | |
| 204 ":manifest", | |
| 205 ":test_support", | |
| 206 "//base", | |
| 207 "//base/test:test_config", | |
| 208 "//components/mus/common:mus_common", | |
| 209 "//components/mus/public/cpp", | |
| 210 "//components/mus/public/cpp/tests:test_support", | |
| 211 "//components/mus/public/interfaces", | |
| 212 "//mojo/converters/geometry", | |
| 213 "//mojo/shell/public/cpp:sources", | |
| 214 "//mojo/shell/public/cpp:test_support", | |
| 215 "//ui/gfx:test_support", | |
| 216 "//ui/gfx/geometry", | |
| 217 "//ui/mojo/geometry:interfaces", | |
| 218 "//ui/mojo/geometry:util", | |
| 219 ] | |
| 220 | |
| 221 data_deps = [ | |
| 222 ":lib", | |
| 223 ] | |
| 224 | 198 |
| 225 if (use_x11) { | 199 if (use_x11) { |
| 226 deps += [ "//tools/xdisplaycheck" ] | 200 deps += [ "//tools/xdisplaycheck" ] |
| 227 } | 201 } |
| 202 |
| 203 data_deps = [ |
| 204 ":mus_ws_unittests_app_manifest", |
| 205 ] |
| 228 } | 206 } |
| 229 | 207 |
| 230 mojo_application_manifest("manifest") { | 208 mojo_application_manifest("mus_ws_unittests_app_manifest") { |
| 231 application_name = "mus_apptests" | 209 application_name = "mus_ws_unittests_app" |
| 232 source = "apptest_manifest.json" | 210 source = "mus_ws_unittests_app_manifest.json" |
| 233 } | 211 } |
| OLD | NEW |