| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//services/shell/public/cpp/service.gni") | |
| 6 import("//services/shell/public/service_manifest.gni") | |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//services/service_manager/public/cpp/service.gni") |
| 7 import("//services/service_manager/public/service_manifest.gni") |
| 8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 9 | 9 |
| 10 static_library("test_support") { | 10 static_library("test_support") { |
| 11 sources = [ | 11 sources = [ |
| 12 "test_catalog_store.cc", | 12 "test_catalog_store.cc", |
| 13 "test_catalog_store.h", | 13 "test_catalog_store.h", |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 deps = [ | 16 deps = [ |
| 17 "//base", | 17 "//base", |
| 18 "//services/catalog:lib", | 18 "//services/catalog:lib", |
| 19 "//url", | 19 "//url", |
| 20 ] | 20 ] |
| 21 } | 21 } |
| 22 | 22 |
| 23 source_set("unittests") { | 23 source_set("unittests") { |
| 24 testonly = true | 24 testonly = true |
| 25 sources = [ | 25 sources = [ |
| 26 "background_shell_unittest.cc", | 26 "background_shell_unittest.cc", |
| 27 ] | 27 ] |
| 28 | 28 |
| 29 deps = [ | 29 deps = [ |
| 30 ":test_service_interfaces", | 30 ":test_service_interfaces", |
| 31 "//base", | 31 "//base", |
| 32 "//services/shell/background:lib", | 32 "//services/service_manager/background:lib", |
| 33 "//services/shell/background:main", | 33 "//services/service_manager/background:main", |
| 34 "//services/shell/public/cpp:sources", | 34 "//services/service_manager/public/cpp:sources", |
| 35 "//testing/gtest", | 35 "//testing/gtest", |
| 36 "//url", | 36 "//url", |
| 37 ] | 37 ] |
| 38 | 38 |
| 39 data_deps = [ | 39 data_deps = [ |
| 40 ":background_shell_test_service", | 40 ":background_shell_test_service", |
| 41 ":test_manifest", | 41 ":test_manifest", |
| 42 ] | 42 ] |
| 43 } | 43 } |
| 44 | 44 |
| 45 mojom("test_service_interfaces") { | 45 mojom("test_service_interfaces") { |
| 46 sources = [ | 46 sources = [ |
| 47 "test.mojom", | 47 "test.mojom", |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 use_new_wrapper_types = false | 50 use_new_wrapper_types = false |
| 51 } | 51 } |
| 52 | 52 |
| 53 service("background_shell_test_service") { | 53 service("background_shell_test_service") { |
| 54 sources = [ | 54 sources = [ |
| 55 "test_service.cc", | 55 "test_service.cc", |
| 56 ] | 56 ] |
| 57 | 57 |
| 58 deps = [ | 58 deps = [ |
| 59 ":test_service_interfaces", | 59 ":test_service_interfaces", |
| 60 "//base", | 60 "//base", |
| 61 "//services/shell/public/cpp:sources", | 61 "//services/service_manager/public/cpp:sources", |
| 62 "//services/shell/public/interfaces", | 62 "//services/service_manager/public/interfaces", |
| 63 ] | 63 ] |
| 64 | 64 |
| 65 data_deps = [ | 65 data_deps = [ |
| 66 ":test_service_manifest", | 66 ":test_service_manifest", |
| 67 ] | 67 ] |
| 68 } | 68 } |
| 69 | 69 |
| 70 service_manifest("test_manifest") { | 70 service_manifest("test_manifest") { |
| 71 name = "background_shell_unittest" | 71 name = "background_shell_unittest" |
| 72 source = "test_manifest.json" | 72 source = "test_manifest.json" |
| 73 } | 73 } |
| 74 | 74 |
| 75 service_manifest("test_service_manifest") { | 75 service_manifest("test_service_manifest") { |
| 76 name = "background_shell_test_service" | 76 name = "background_shell_test_service" |
| 77 source = "test_service_manifest.json" | 77 source = "test_service_manifest.json" |
| 78 } | 78 } |
| OLD | NEW |