# Copyright 2014 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") static_library("unittest_support") { testonly = true sources = [ "test_window.h", "test_window_tree.cc", "test_window_tree.h", "test_window_tree_client_setup.cc", "test_window_tree_client_setup.h", "window_tree_client_private.cc", "window_tree_client_private.h", ] deps = [ "//base", "//services/ui/public/cpp", "//services/ui/public/cpp:internal_or_test", "//services/ui/public/interfaces", "//testing/gtest", "//ui/display", "//ui/gfx/geometry/mojo", ] } static_library("test_support") { testonly = true sources = [ "window_server_shelltest_base.cc", "window_server_shelltest_base.h", "window_server_test_base.cc", "window_server_test_base.h", ] deps = [ "//base", "//base/test:test_config", "//services/service_manager/public/cpp:service_test_support", "//services/service_manager/public/cpp:sources", "//services/ui/common:mus_common", "//services/ui/public/cpp", "//testing/gtest", "//ui/display:test_support", "//ui/gl", ] } test("mus_public_unittests") { sources = [ "property_type_converters_unittest.cc", "run_all_unittests.cc", "window_server_test_suite.cc", "window_server_test_suite.h", "window_tree_client_unittest.cc", "window_unittest.cc", ] deps = [ ":unittest_support", "//base", "//base/test:test_support", "//mojo/common:common_base", "//mojo/edk/system", "//mojo/public/cpp/system", "//services/service_manager/public/cpp", "//services/ui/common:mus_common", "//services/ui/public/cpp", "//services/ui/public/cpp:internal_or_test", "//testing/gtest", "//ui/display:test_support", "//ui/events", "//ui/gfx:test_support", "//ui/gfx/geometry", "//ui/gfx/geometry/mojo", ] if (use_x11) { deps += [ "//ui/gfx/x" ] } }