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 | 7 |
8 static_library("unittest_support") { | |
9 testonly = true | |
10 | |
11 sources = [ | |
12 "test_window.h", | |
13 "test_window_tree.cc", | |
14 "test_window_tree.h", | |
15 "test_window_tree_client_setup.cc", | |
16 "test_window_tree_client_setup.h", | |
17 "window_tree_client_private.cc", | |
18 "window_tree_client_private.h", | |
19 ] | |
20 | |
21 deps = [ | |
22 "//base", | |
23 "//services/ui/public/cpp", | |
24 "//services/ui/public/cpp:internal_or_test", | |
25 "//services/ui/public/interfaces", | |
26 "//testing/gtest", | |
27 "//ui/display", | |
28 "//ui/gfx/geometry/mojo", | |
29 ] | |
30 } | |
31 | |
32 test("mus_public_unittests") { | 8 test("mus_public_unittests") { |
33 sources = [ | 9 sources = [ |
34 "property_type_converters_unittest.cc", | 10 "property_type_converters_unittest.cc", |
35 "run_all_unittests.cc", | 11 "run_all_unittests.cc", |
36 "window_server_test_suite.cc", | 12 "window_server_test_suite.cc", |
37 "window_server_test_suite.h", | 13 "window_server_test_suite.h", |
38 "window_tree_client_unittest.cc", | |
39 "window_unittest.cc", | |
40 ] | 14 ] |
41 | 15 |
42 deps = [ | 16 deps = [ |
43 ":unittest_support", | |
44 "//base", | 17 "//base", |
45 "//base/test:test_support", | 18 "//base/test:test_support", |
46 "//mojo/common:common_base", | 19 "//mojo/common:common_base", |
47 "//mojo/edk/system", | 20 "//mojo/edk/system", |
48 "//mojo/public/cpp/system", | 21 "//mojo/public/cpp/system", |
49 "//services/service_manager/public/cpp", | 22 "//services/service_manager/public/cpp", |
50 "//services/ui/common:mus_common", | |
51 "//services/ui/public/cpp", | 23 "//services/ui/public/cpp", |
52 "//services/ui/public/cpp:internal_or_test", | |
53 "//testing/gtest", | 24 "//testing/gtest", |
54 "//ui/display:test_support", | |
55 "//ui/events", | |
56 "//ui/gfx:test_support", | |
57 "//ui/gfx/geometry", | 25 "//ui/gfx/geometry", |
58 "//ui/gfx/geometry/mojo", | 26 "//ui/gfx/geometry/mojo", |
59 ] | 27 ] |
60 | 28 |
61 if (use_x11) { | 29 if (use_x11) { |
62 deps += [ "//ui/gfx/x" ] | 30 deps += [ "//ui/gfx/x" ] |
63 } | 31 } |
64 } | 32 } |
OLD | NEW |