OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//testing/test.gni") |
| 6 |
| 7 source_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", |
| 17 "surface.cc", |
| 18 "surface.h", |
| 19 "surface_delegate.h", |
| 20 ] |
| 21 |
| 22 deps = [ |
| 23 "//ash", |
| 24 "//base", |
| 25 "//cc", |
| 26 "//gpu", |
| 27 "//skia", |
| 28 "//ui/aura", |
| 29 "//ui/compositor", |
| 30 "//ui/gfx", |
| 31 "//ui/gfx/geometry", |
| 32 "//ui/gl", |
| 33 "//ui/views", |
| 34 ] |
| 35 } |
| 36 |
| 37 source_set("test_support") { |
| 38 testonly = true |
| 39 |
| 40 sources = [ |
| 41 "test/exo_test_base.cc", |
| 42 "test/exo_test_base.h", |
| 43 "test/exo_test_helper.cc", |
| 44 "test/exo_test_helper.h", |
| 45 ] |
| 46 |
| 47 deps = [ |
| 48 "//ash:test_support", |
| 49 "//base", |
| 50 "//skia", |
| 51 "//testing/gtest", |
| 52 ] |
| 53 } |
| 54 |
| 55 source_set("unit_tests") { |
| 56 testonly = true |
| 57 |
| 58 sources = [ |
| 59 "buffer_unittest.cc", |
| 60 "display_unittest.cc", |
| 61 "shared_memory_unittest.cc", |
| 62 "shell_surface_unittest.cc", |
| 63 "surface_unittest.cc", |
| 64 ] |
| 65 |
| 66 deps = [ |
| 67 "//components/user_manager", |
| 68 "//skia", |
| 69 "//testing/gtest", |
| 70 "//ui/keyboard", |
| 71 "//ui/message_center", |
| 72 ":exo", |
| 73 ":test_support", |
| 74 ] |
| 75 } |
| 76 |
| 77 test("exo_unittests") { |
| 78 sources = [ |
| 79 "test/run_all_unittests.cc", |
| 80 ] |
| 81 deps = [ |
| 82 "//ash:test_support", |
| 83 ":unit_tests", |
| 84 ] |
| 85 if (is_linux) { |
| 86 deps += [ "//components/exo/wayland:unit_tests" ] |
| 87 } |
| 88 } |
OLD | NEW |