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 source_set("unittest_support") { | 8 source_set("unittest_support") { |
9 testonly = true | 9 testonly = true |
10 | 10 |
11 sources = [ | 11 sources = [ |
12 "test_window.h", | 12 "test_window.h", |
13 "test_window_tree.cc", | 13 "test_window_tree.cc", |
14 "test_window_tree.h", | 14 "test_window_tree.h", |
15 "test_window_tree_client_setup.cc", | 15 "test_window_tree_client_setup.cc", |
16 "test_window_tree_client_setup.h", | 16 "test_window_tree_client_setup.h", |
17 "window_tree_client_private.cc", | 17 "window_tree_client_private.cc", |
18 "window_tree_client_private.h", | 18 "window_tree_client_private.h", |
19 ] | 19 ] |
20 | 20 |
21 deps = [ | 21 deps = [ |
22 "//base", | 22 "//base", |
23 "//components/mus/public/cpp", | 23 "//services/ui/public/cpp", |
24 "//testing/gtest", | 24 "//testing/gtest", |
25 "//ui/display", | 25 "//ui/display", |
26 "//ui/gfx/geometry/mojo", | 26 "//ui/gfx/geometry/mojo", |
27 ] | 27 ] |
28 } | 28 } |
29 | 29 |
30 source_set("test_support") { | 30 source_set("test_support") { |
31 testonly = true | 31 testonly = true |
32 | 32 |
33 sources = [ | 33 sources = [ |
34 "window_server_shelltest_base.cc", | 34 "window_server_shelltest_base.cc", |
35 "window_server_shelltest_base.h", | 35 "window_server_shelltest_base.h", |
36 "window_server_test_base.cc", | 36 "window_server_test_base.cc", |
37 "window_server_test_base.h", | 37 "window_server_test_base.h", |
38 ] | 38 ] |
39 | 39 |
40 deps = [ | 40 deps = [ |
41 "//base", | 41 "//base", |
42 "//base/test:test_config", | 42 "//base/test:test_config", |
43 "//components/mus/common:mus_common", | |
44 "//components/mus/public/cpp", | |
45 "//services/shell/public/cpp:shell_test_support", | 43 "//services/shell/public/cpp:shell_test_support", |
46 "//services/shell/public/cpp:sources", | 44 "//services/shell/public/cpp:sources", |
| 45 "//services/ui/common:mus_common", |
| 46 "//services/ui/public/cpp", |
47 "//testing/gtest", | 47 "//testing/gtest", |
48 "//ui/gl", | 48 "//ui/gl", |
49 ] | 49 ] |
50 } | 50 } |
51 | 51 |
52 test("mus_public_unittests") { | 52 test("mus_public_unittests") { |
53 sources = [ | 53 sources = [ |
54 "property_type_converters_unittest.cc", | 54 "property_type_converters_unittest.cc", |
55 "run_all_unittests.cc", | 55 "run_all_unittests.cc", |
56 "window_server_test_suite.cc", | 56 "window_server_test_suite.cc", |
57 "window_server_test_suite.h", | 57 "window_server_test_suite.h", |
58 "window_tree_client_unittest.cc", | 58 "window_tree_client_unittest.cc", |
59 "window_unittest.cc", | 59 "window_unittest.cc", |
60 ] | 60 ] |
61 | 61 |
62 deps = [ | 62 deps = [ |
63 ":unittest_support", | 63 ":unittest_support", |
64 "//base", | 64 "//base", |
65 "//base/test:test_support", | 65 "//base/test:test_support", |
66 "//components/mus/common:mus_common", | |
67 "//components/mus/public/cpp", | |
68 "//mojo/common:common_base", | 66 "//mojo/common:common_base", |
69 "//mojo/edk/system", | 67 "//mojo/edk/system", |
70 "//mojo/public/cpp/system", | 68 "//mojo/public/cpp/system", |
71 "//services/shell/public/cpp", | 69 "//services/shell/public/cpp", |
| 70 "//services/ui/common:mus_common", |
| 71 "//services/ui/public/cpp", |
72 "//testing/gtest", | 72 "//testing/gtest", |
73 "//ui/events", | 73 "//ui/events", |
74 "//ui/gfx:test_support", | 74 "//ui/gfx:test_support", |
75 "//ui/gfx/geometry", | 75 "//ui/gfx/geometry", |
76 "//ui/gfx/geometry/mojo", | 76 "//ui/gfx/geometry/mojo", |
77 ] | 77 ] |
78 | 78 |
79 if (use_x11) { | 79 if (use_x11) { |
80 deps += [ "//ui/gfx/x" ] | 80 deps += [ "//ui/gfx/x" ] |
81 } | 81 } |
82 } | 82 } |
OLD | NEW |