# 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("//testing/test.gni") source_set("exo") { sources = [ "buffer.cc", "buffer.h", "display.cc", "display.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", "shared_memory_unittest.cc", "shell_surface_unittest.cc", "sub_surface_unittest.cc", "surface_unittest.cc", ] deps = [ ":exo", ":test_support", "//base", "//cc", "//components/user_manager", "//gpu/command_buffer/client:gles2_interface", "//skia", "//testing/gtest", "//ui/aura", "//ui/gfx", "//ui/keyboard", "//ui/message_center", "//ui/ozone", "//ui/views", ] } 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" ] } }