blob: ab9103527b8bf6894a3b8f6679c70ef058ac1aa5 [file] [log] [blame]
revemanb195f41d2015-11-19 22:16:481# Copyright 2015 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//testing/test.gni")
6
7source_set("exo") {
8 sources = [
9 "buffer.cc",
10 "buffer.h",
11 "display.cc",
12 "display.h",
13 "shared_memory.cc",
14 "shared_memory.h",
15 "shell_surface.cc",
16 "shell_surface.h",
reveman27fe2642015-11-20 06:33:3917 "sub_surface.cc",
18 "sub_surface.h",
revemanb195f41d2015-11-19 22:16:4819 "surface.cc",
20 "surface.h",
21 "surface_delegate.h",
reveman27fe2642015-11-20 06:33:3922 "surface_observer.h",
revemanb195f41d2015-11-19 22:16:4823 ]
24
25 deps = [
26 "//ash",
27 "//base",
28 "//cc",
29 "//gpu",
brettw15764b12015-11-30 22:11:0530 "//gpu/command_buffer/client:gles2_interface",
revemanb195f41d2015-11-19 22:16:4831 "//skia",
32 "//ui/aura",
33 "//ui/compositor",
34 "//ui/gfx",
35 "//ui/gfx/geometry",
36 "//ui/gl",
37 "//ui/views",
38 ]
39}
40
41source_set("test_support") {
42 testonly = true
43
44 sources = [
45 "test/exo_test_base.cc",
46 "test/exo_test_base.h",
47 "test/exo_test_helper.cc",
48 "test/exo_test_helper.h",
49 ]
50
51 deps = [
52 "//ash:test_support",
53 "//base",
brettw15764b12015-11-30 22:11:0554 "//gpu",
revemanb195f41d2015-11-19 22:16:4855 "//skia",
56 "//testing/gtest",
brettw15764b12015-11-30 22:11:0557 "//ui/aura",
58 "//ui/compositor",
59 "//ui/gfx/geometry",
revemanb195f41d2015-11-19 22:16:4860 ]
61}
62
63source_set("unit_tests") {
64 testonly = true
65
66 sources = [
67 "buffer_unittest.cc",
68 "display_unittest.cc",
69 "shared_memory_unittest.cc",
70 "shell_surface_unittest.cc",
reveman27fe2642015-11-20 06:33:3971 "sub_surface_unittest.cc",
revemanb195f41d2015-11-19 22:16:4872 "surface_unittest.cc",
73 ]
74
75 deps = [
reveman27fe2642015-11-20 06:33:3976 ":exo",
77 ":test_support",
brettw15764b12015-11-30 22:11:0578 "//base",
79 "//cc",
revemanb195f41d2015-11-19 22:16:4880 "//components/user_manager",
brettw15764b12015-11-30 22:11:0581 "//gpu/command_buffer/client:gles2_interface",
revemanb195f41d2015-11-19 22:16:4882 "//skia",
83 "//testing/gtest",
brettw15764b12015-11-30 22:11:0584 "//ui/aura",
85 "//ui/gfx",
revemanb195f41d2015-11-19 22:16:4886 "//ui/keyboard",
87 "//ui/message_center",
brettw15764b12015-11-30 22:11:0588 "//ui/views",
revemanb195f41d2015-11-19 22:16:4889 ]
90}
91
92test("exo_unittests") {
93 sources = [
94 "test/run_all_unittests.cc",
95 ]
96 deps = [
revemanb195f41d2015-11-19 22:16:4897 ":unit_tests",
reveman27fe2642015-11-20 06:33:3998 "//ash:test_support",
brettw15764b12015-11-30 22:11:0599 "//base",
100 "//base/test:test_support",
revemanb195f41d2015-11-19 22:16:48101 ]
102 if (is_linux) {
103 deps += [ "//components/exo/wayland:unit_tests" ]
104 }
105}