| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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("//mojo/public/mojo_application_manifest.gni") |
| 5 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 6 | 7 |
| 7 component("mus_common") { | 8 component("mus_common") { |
| 8 sources = [ | 9 sources = [ |
| 9 "event_matcher_util.cc", | 10 "event_matcher_util.cc", |
| 10 "event_matcher_util.h", | 11 "event_matcher_util.h", |
| 11 "event_param_traits.cc", | 12 "event_param_traits.cc", |
| 12 "event_param_traits.h", | 13 "event_param_traits.h", |
| 13 "event_param_traits_macros.h", | 14 "event_param_traits_macros.h", |
| 15 "gpu_type_converters.cc", |
| 16 "gpu_type_converters.h", |
| 14 "mus_common_export.h", | 17 "mus_common_export.h", |
| 15 "switches.cc", | 18 "switches.cc", |
| 16 "switches.h", | 19 "switches.h", |
| 17 "transient_window_utils.h", | 20 "transient_window_utils.h", |
| 18 "types.h", | 21 "types.h", |
| 19 "util.h", | 22 "util.h", |
| 20 ] | 23 ] |
| 21 | 24 |
| 22 defines = [ "MUS_IPC_IMPLEMENTATION" ] | 25 defines = [ "MUS_IPC_IMPLEMENTATION" ] |
| 23 | 26 |
| 24 deps = [ | 27 deps = [ |
| 25 "//components/mus/public/interfaces", | 28 "//components/mus/public/interfaces", |
| 26 "//gpu/ipc/common:command_buffer_traits", | 29 "//gpu/ipc/common:command_buffer_traits", |
| 27 "//ipc:ipc", | 30 "//ipc:ipc", |
| 28 "//mojo/public/c/system:for_component", | 31 "//mojo/public/c/system:for_component", |
| 29 "//ui/events:events", | 32 "//ui/events:events", |
| 30 "//ui/gfx/ipc/geometry", | 33 "//ui/gfx/ipc/geometry", |
| 31 ] | 34 ] |
| 32 | 35 |
| 33 public_deps = [ | 36 public_deps = [ |
| 34 "//ui/base", | 37 "//ui/base", |
| 35 ] | 38 ] |
| 36 } | 39 } |
| 37 | 40 |
| 38 test("mus_common_unittests") { | 41 test("mus_common_unittests") { |
| 39 sources = [ | 42 sources = [ |
| 40 "event_param_traits_unittest.cc", | 43 "event_param_traits_unittest.cc", |
| 44 "gpu_type_converters_unittest.cc", |
| 45 "run_all_shelltests.cc", |
| 41 ] | 46 ] |
| 42 public_deps = [ | 47 public_deps = [ |
| 43 ":mus_common", | 48 ":mus_common", |
| 44 ] | 49 ] |
| 45 deps = [ | 50 deps = [ |
| 46 "//base", | 51 "//base", |
| 47 "//base/test:run_all_unittests", | |
| 48 "//base/test:test_config", | 52 "//base/test:test_config", |
| 53 "//base/test:test_support", |
| 54 "//components/mus/public/interfaces", |
| 49 "//ipc:ipc", | 55 "//ipc:ipc", |
| 56 "//mojo/edk/system", |
| 50 "//mojo/edk/test:test_support", | 57 "//mojo/edk/test:test_support", |
| 58 "//services/shell/background:lib", |
| 59 "//services/shell/background:main", |
| 51 "//testing/gtest", | 60 "//testing/gtest", |
| 52 "//ui/events:events", | 61 "//ui/events:events", |
| 53 "//ui/gfx:test_support", | 62 "//ui/gfx:test_support", |
| 54 "//ui/gfx/ipc", | 63 "//ui/gfx/ipc", |
| 55 ] | 64 ] |
| 56 } | 65 } |
| 66 |
| 67 mojo_application_manifest("mus_common_unittests_app_manifest") { |
| 68 application_name = "mus_common_unittests_app" |
| 69 source = "mus_common_unittests_app_manifest.json" |
| 70 } |
| OLD | NEW |