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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 source_set("exo") { | 7 source_set("exo") { |
8 sources = [ | 8 sources = [ |
9 "buffer.cc", | 9 "buffer.cc", |
10 "buffer.h", | 10 "buffer.h", |
11 "display.cc", | 11 "display.cc", |
12 "display.h", | 12 "display.h", |
13 "shared_memory.cc", | 13 "shared_memory.cc", |
14 "shared_memory.h", | 14 "shared_memory.h", |
15 "shell_surface.cc", | 15 "shell_surface.cc", |
16 "shell_surface.h", | 16 "shell_surface.h", |
17 "sub_surface.cc", | 17 "sub_surface.cc", |
18 "sub_surface.h", | 18 "sub_surface.h", |
19 "surface.cc", | 19 "surface.cc", |
20 "surface.h", | 20 "surface.h", |
21 "surface_delegate.h", | 21 "surface_delegate.h", |
22 "surface_observer.h", | 22 "surface_observer.h", |
23 ] | 23 ] |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 "//ash", | 26 "//ash", |
27 "//base", | 27 "//base", |
28 "//cc", | 28 "//cc", |
29 "//gpu", | 29 "//gpu", |
| 30 "//gpu/command_buffer/client:gles2_interface", |
30 "//skia", | 31 "//skia", |
31 "//ui/aura", | 32 "//ui/aura", |
32 "//ui/compositor", | 33 "//ui/compositor", |
33 "//ui/gfx", | 34 "//ui/gfx", |
34 "//ui/gfx/geometry", | 35 "//ui/gfx/geometry", |
35 "//ui/gl", | 36 "//ui/gl", |
36 "//ui/views", | 37 "//ui/views", |
37 ] | 38 ] |
38 } | 39 } |
39 | 40 |
40 source_set("test_support") { | 41 source_set("test_support") { |
41 testonly = true | 42 testonly = true |
42 | 43 |
43 sources = [ | 44 sources = [ |
44 "test/exo_test_base.cc", | 45 "test/exo_test_base.cc", |
45 "test/exo_test_base.h", | 46 "test/exo_test_base.h", |
46 "test/exo_test_helper.cc", | 47 "test/exo_test_helper.cc", |
47 "test/exo_test_helper.h", | 48 "test/exo_test_helper.h", |
48 ] | 49 ] |
49 | 50 |
50 deps = [ | 51 deps = [ |
51 "//ash:test_support", | 52 "//ash:test_support", |
52 "//base", | 53 "//base", |
| 54 "//gpu", |
53 "//skia", | 55 "//skia", |
54 "//testing/gtest", | 56 "//testing/gtest", |
| 57 "//ui/aura", |
| 58 "//ui/compositor", |
| 59 "//ui/gfx/geometry", |
55 ] | 60 ] |
56 } | 61 } |
57 | 62 |
58 source_set("unit_tests") { | 63 source_set("unit_tests") { |
59 testonly = true | 64 testonly = true |
60 | 65 |
61 sources = [ | 66 sources = [ |
62 "buffer_unittest.cc", | 67 "buffer_unittest.cc", |
63 "display_unittest.cc", | 68 "display_unittest.cc", |
64 "shared_memory_unittest.cc", | 69 "shared_memory_unittest.cc", |
65 "shell_surface_unittest.cc", | 70 "shell_surface_unittest.cc", |
66 "sub_surface_unittest.cc", | 71 "sub_surface_unittest.cc", |
67 "surface_unittest.cc", | 72 "surface_unittest.cc", |
68 ] | 73 ] |
69 | 74 |
70 deps = [ | 75 deps = [ |
71 ":exo", | 76 ":exo", |
72 ":test_support", | 77 ":test_support", |
| 78 "//base", |
| 79 "//cc", |
73 "//components/user_manager", | 80 "//components/user_manager", |
| 81 "//gpu/command_buffer/client:gles2_interface", |
74 "//skia", | 82 "//skia", |
75 "//testing/gtest", | 83 "//testing/gtest", |
| 84 "//ui/aura", |
| 85 "//ui/gfx", |
76 "//ui/keyboard", | 86 "//ui/keyboard", |
77 "//ui/message_center", | 87 "//ui/message_center", |
| 88 "//ui/views", |
78 ] | 89 ] |
79 } | 90 } |
80 | 91 |
81 test("exo_unittests") { | 92 test("exo_unittests") { |
82 sources = [ | 93 sources = [ |
83 "test/run_all_unittests.cc", | 94 "test/run_all_unittests.cc", |
84 ] | 95 ] |
85 deps = [ | 96 deps = [ |
86 ":unit_tests", | 97 ":unit_tests", |
87 "//ash:test_support", | 98 "//ash:test_support", |
| 99 "//base", |
| 100 "//base/test:test_support", |
88 ] | 101 ] |
89 if (is_linux) { | 102 if (is_linux) { |
90 deps += [ "//components/exo/wayland:unit_tests" ] | 103 deps += [ "//components/exo/wayland:unit_tests" ] |
91 } | 104 } |
92 } | 105 } |
OLD | NEW |