OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("exo") { | 8 source_set("exo") { |
9 sources = [ | 9 sources = [ |
10 "buffer.cc", | 10 "buffer.cc", |
11 "buffer.h", | 11 "buffer.h", |
12 "display.cc", | 12 "display.cc", |
13 "display.h", | 13 "display.h", |
| 14 "gamepad.cc", |
| 15 "gamepad.h", |
14 "keyboard.cc", | 16 "keyboard.cc", |
15 "keyboard.h", | 17 "keyboard.h", |
16 "keyboard_delegate.h", | 18 "keyboard_delegate.h", |
17 "notification_surface.cc", | 19 "notification_surface.cc", |
18 "notification_surface.h", | 20 "notification_surface.h", |
19 "notification_surface_manager.h", | 21 "notification_surface_manager.h", |
20 "pointer.cc", | 22 "pointer.cc", |
21 "pointer.h", | 23 "pointer.h", |
22 "pointer_delegate.h", | 24 "pointer_delegate.h", |
23 "shared_memory.cc", | 25 "shared_memory.cc", |
(...skipping 10 matching lines...) Expand all Loading... |
34 "touch.cc", | 36 "touch.cc", |
35 "touch.h", | 37 "touch.h", |
36 "touch_delegate.h", | 38 "touch_delegate.h", |
37 ] | 39 ] |
38 | 40 |
39 deps = [ | 41 deps = [ |
40 "//ash", | 42 "//ash", |
41 "//base", | 43 "//base", |
42 "//cc", | 44 "//cc", |
43 "//cc/surfaces:surfaces", | 45 "//cc/surfaces:surfaces", |
| 46 "//device/gamepad", |
44 "//gpu", | 47 "//gpu", |
45 "//gpu/command_buffer/client:gles2_interface", | 48 "//gpu/command_buffer/client:gles2_interface", |
46 "//skia", | 49 "//skia", |
47 "//ui/aura", | 50 "//ui/aura", |
48 "//ui/compositor", | 51 "//ui/compositor", |
49 "//ui/gfx", | 52 "//ui/gfx", |
50 "//ui/gfx/geometry", | 53 "//ui/gfx/geometry", |
51 "//ui/gl", | 54 "//ui/gl", |
52 "//ui/views", | 55 "//ui/views", |
53 "//ui/wm:wm", | 56 "//ui/wm:wm", |
(...skipping 22 matching lines...) Expand all Loading... |
76 "//ui/wm:wm", | 79 "//ui/wm:wm", |
77 ] | 80 ] |
78 } | 81 } |
79 | 82 |
80 source_set("unit_tests") { | 83 source_set("unit_tests") { |
81 testonly = true | 84 testonly = true |
82 | 85 |
83 sources = [ | 86 sources = [ |
84 "buffer_unittest.cc", | 87 "buffer_unittest.cc", |
85 "display_unittest.cc", | 88 "display_unittest.cc", |
| 89 "gamepad_unittest.cc", |
86 "keyboard_unittest.cc", | 90 "keyboard_unittest.cc", |
87 "pointer_unittest.cc", | 91 "pointer_unittest.cc", |
88 "shared_memory_unittest.cc", | 92 "shared_memory_unittest.cc", |
89 "shell_surface_unittest.cc", | 93 "shell_surface_unittest.cc", |
90 "sub_surface_unittest.cc", | 94 "sub_surface_unittest.cc", |
91 "surface_unittest.cc", | 95 "surface_unittest.cc", |
92 "touch_unittest.cc", | 96 "touch_unittest.cc", |
93 ] | 97 ] |
94 | 98 |
95 deps = [ | 99 deps = [ |
96 ":exo", | 100 ":exo", |
97 ":test_support", | 101 ":test_support", |
98 "//ash", | 102 "//ash", |
99 "//base", | 103 "//base", |
| 104 "//base/test:test_support", |
100 "//cc", | 105 "//cc", |
101 "//cc/surfaces:surfaces", | 106 "//cc/surfaces:surfaces", |
102 "//components/user_manager", | 107 "//components/user_manager", |
| 108 "//device/gamepad:test_helpers", |
103 "//gpu/command_buffer/client:gles2_interface", | 109 "//gpu/command_buffer/client:gles2_interface", |
104 "//skia", | 110 "//skia", |
105 "//testing/gmock", | 111 "//testing/gmock", |
106 "//testing/gtest", | 112 "//testing/gtest", |
107 "//ui/aura", | 113 "//ui/aura", |
108 "//ui/events:dom_keycode_converter", | 114 "//ui/events:dom_keycode_converter", |
109 "//ui/events:test_support", | 115 "//ui/events:test_support", |
110 "//ui/gfx", | 116 "//ui/gfx", |
111 "//ui/keyboard", | 117 "//ui/keyboard", |
112 "//ui/message_center", | 118 "//ui/message_center", |
113 "//ui/views", | 119 "//ui/views", |
114 "//ui/wm:wm", | 120 "//ui/wm:wm", |
115 ] | 121 ] |
116 | 122 |
117 if (use_ozone) { | 123 if (use_ozone) { |
118 deps += [ "//ui/ozone" ] | 124 deps += [ "//ui/ozone" ] |
119 } | 125 } |
120 } | 126 } |
121 | 127 |
122 test("exo_unittests") { | 128 test("exo_unittests") { |
123 sources = [ | 129 sources = [ |
124 "test/run_all_unittests.cc", | 130 "test/run_all_unittests.cc", |
125 ] | 131 ] |
126 | 132 |
127 deps = [ | 133 deps = [ |
128 ":unit_tests", | 134 ":unit_tests", |
129 "//ash:test_support", | 135 "//ash:test_support", |
130 "//base", | 136 "//base", |
131 "//base/test:test_support", | 137 "//base/test:test_support", |
| 138 "//device/gamepad:test_helpers", |
132 ] | 139 ] |
133 | 140 |
134 data_deps = [ | 141 data_deps = [ |
135 "//ash/resources:ash_test_resources_100_percent", | 142 "//ash/resources:ash_test_resources_100_percent", |
136 "//ash/resources:ash_test_resources_200_percent", | 143 "//ash/resources:ash_test_resources_200_percent", |
137 "//ash/strings:ash_test_strings", | 144 "//ash/strings:ash_test_strings", |
138 ] | 145 ] |
139 | 146 |
140 if (use_x11) { | 147 if (use_x11) { |
141 deps += [ "//tools/xdisplaycheck" ] | 148 deps += [ "//tools/xdisplaycheck" ] |
142 } | 149 } |
143 | 150 |
144 if (is_linux) { | 151 if (is_linux) { |
145 deps += [ "//components/exo/wayland:unit_tests" ] | 152 deps += [ "//components/exo/wayland:unit_tests" ] |
146 } | 153 } |
147 } | 154 } |
OLD | NEW |