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