| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 source_set("unittest_support") { |
| 9 sources = [ |
| 10 "test_window.h", |
| 11 ] |
| 12 |
| 13 deps = [ |
| 14 "//components/mus/public/cpp", |
| 15 ] |
| 16 } |
| 17 |
| 8 source_set("test_support") { | 18 source_set("test_support") { |
| 9 testonly = true | 19 testonly = true |
| 10 | 20 |
| 11 sources = [ | 21 sources = [ |
| 12 "window_server_test_base.cc", | 22 "window_server_test_base.cc", |
| 13 "window_server_test_base.h", | 23 "window_server_test_base.h", |
| 14 ] | 24 ] |
| 15 | 25 |
| 16 deps = [ | 26 deps = [ |
| 17 "//base", | 27 "//base", |
| 18 "//base/test:test_config", | 28 "//base/test:test_config", |
| 19 "//components/mus/public/cpp", | 29 "//components/mus/public/cpp", |
| 20 "//mojo/application/public/cpp:sources", | 30 "//mojo/application/public/cpp:sources", |
| 21 "//mojo/application/public/cpp:test_support", | 31 "//mojo/application/public/cpp:test_support", |
| 22 "//testing/gtest", | 32 "//testing/gtest", |
| 23 ] | 33 ] |
| 24 } | 34 } |
| 25 | 35 |
| 26 test("mojo_view_manager_lib_unittests") { | 36 test("mojo_view_manager_lib_unittests") { |
| 27 sources = [ | 37 sources = [ |
| 28 "run_all_unittests.cc", | 38 "run_all_unittests.cc", |
| 29 "window_server_test_suite.cc", | 39 "window_server_test_suite.cc", |
| 30 "window_server_test_suite.h", | 40 "window_server_test_suite.h", |
| 31 "window_unittest.cc", | 41 "window_unittest.cc", |
| 32 ] | 42 ] |
| 33 | 43 |
| 34 deps = [ | 44 deps = [ |
| 45 ":unittest_support", |
| 35 "//base", | 46 "//base", |
| 36 "//base/test:test_support", | 47 "//base/test:test_support", |
| 37 "//components/mus/public/cpp", | 48 "//components/mus/public/cpp", |
| 38 "//mojo/application/public/cpp", | 49 "//mojo/application/public/cpp", |
| 39 "//testing/gtest", | 50 "//testing/gtest", |
| 40 "//third_party/mojo/src/mojo/public/cpp/system", | 51 "//third_party/mojo/src/mojo/public/cpp/system", |
| 41 "//third_party/mojo/src/mojo/edk/system", | 52 "//third_party/mojo/src/mojo/edk/system", |
| 42 "//ui/gfx:test_support", | 53 "//ui/gfx:test_support", |
| 43 "//ui/gfx/geometry", | 54 "//ui/gfx/geometry", |
| 44 "//ui/mojo/geometry:interfaces", | 55 "//ui/mojo/geometry:interfaces", |
| 45 ] | 56 ] |
| 46 | 57 |
| 47 if (use_x11) { | 58 if (use_x11) { |
| 48 deps += [ "//ui/gfx/x" ] | 59 deps += [ "//ui/gfx/x" ] |
| 49 } | 60 } |
| 50 } | 61 } |
| OLD | NEW |