1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
import("//testing/test.gni")
source_set("exo") {
sources = [
"buffer.cc",
"buffer.h",
"display.cc",
"display.h",
"pointer.cc",
"pointer.h",
"pointer_delegate.h",
"shared_memory.cc",
"shared_memory.h",
"shell_surface.cc",
"shell_surface.h",
"sub_surface.cc",
"sub_surface.h",
"surface.cc",
"surface.h",
"surface_delegate.h",
"surface_observer.h",
]
deps = [
"//ash",
"//base",
"//cc",
"//gpu",
"//gpu/command_buffer/client:gles2_interface",
"//skia",
"//ui/aura",
"//ui/compositor",
"//ui/gfx",
"//ui/gfx/geometry",
"//ui/gl",
"//ui/views",
]
}
source_set("test_support") {
testonly = true
sources = [
"test/exo_test_base.cc",
"test/exo_test_base.h",
"test/exo_test_helper.cc",
"test/exo_test_helper.h",
]
deps = [
"//ash:test_support",
"//base",
"//gpu",
"//skia",
"//testing/gtest",
"//ui/aura",
"//ui/compositor",
"//ui/gfx/geometry",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"buffer_unittest.cc",
"display_unittest.cc",
"pointer_unittest.cc",
"shared_memory_unittest.cc",
"shell_surface_unittest.cc",
"sub_surface_unittest.cc",
"surface_unittest.cc",
]
deps = [
":exo",
":test_support",
"//ash",
"//base",
"//cc",
"//components/user_manager",
"//gpu/command_buffer/client:gles2_interface",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//ui/aura",
"//ui/events:test_support",
"//ui/gfx",
"//ui/keyboard",
"//ui/message_center",
"//ui/views",
]
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
}
test("exo_unittests") {
sources = [
"test/run_all_unittests.cc",
]
deps = [
":unit_tests",
"//ash:test_support",
"//base",
"//base/test:test_support",
]
if (is_linux) {
deps += [ "//components/exo/wayland:unit_tests" ]
}
}
|