| 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("//services/catalog/public/tools/catalog.gni") |
| 5 import("//services/service_manager/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
| 8 | 9 |
| 9 static_library("lib") { | 10 static_library("lib") { |
| 10 sources = [ | 11 sources = [ |
| 11 "directory_impl.cc", | 12 "directory_impl.cc", |
| 12 "directory_impl.h", | 13 "directory_impl.h", |
| 13 "file_impl.cc", | 14 "file_impl.cc", |
| 14 "file_impl.h", | 15 "file_impl.h", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 name = "filesystem" | 62 name = "filesystem" |
| 62 source = "manifest.json" | 63 source = "manifest.json" |
| 63 } | 64 } |
| 64 | 65 |
| 65 test("filesystem_service_unittests") { | 66 test("filesystem_service_unittests") { |
| 66 sources = [ | 67 sources = [ |
| 67 "directory_impl_unittest.cc", | 68 "directory_impl_unittest.cc", |
| 68 "file_impl_unittest.cc", | 69 "file_impl_unittest.cc", |
| 69 "files_test_base.cc", | 70 "files_test_base.cc", |
| 70 "files_test_base.h", | 71 "files_test_base.h", |
| 72 "run_all_unittests.cc", |
| 71 ] | 73 ] |
| 72 | 74 |
| 73 deps = [ | 75 deps = [ |
| 74 "//base", | 76 "//base", |
| 77 "//base/test:test_support", |
| 75 "//components/filesystem/public/interfaces", | 78 "//components/filesystem/public/interfaces", |
| 76 "//mojo/common", | 79 "//mojo/common", |
| 80 "//mojo/edk/system", |
| 77 "//mojo/public/cpp/bindings", | 81 "//mojo/public/cpp/bindings", |
| 78 "//mojo/public/cpp/system", | 82 "//mojo/public/cpp/system", |
| 83 "//services/catalog:lib", |
| 79 "//services/service_manager/public/cpp:service_test_support", | 84 "//services/service_manager/public/cpp:service_test_support", |
| 80 "//services/service_manager/public/cpp:sources", | 85 "//services/service_manager/public/cpp:sources", |
| 81 "//services/service_manager/public/cpp/test:run_all_service_tests", | |
| 82 ] | 86 ] |
| 83 | 87 |
| 84 data_deps = [ | 88 data_deps = [ |
| 85 ":test_manifest", | |
| 86 ":filesystem", | 89 ":filesystem", |
| 90 ":filesystem_service_unittests_catalog_copy", |
| 87 ] | 91 ] |
| 88 } | 92 } |
| 89 | 93 |
| 90 service_manifest("test_manifest") { | 94 service_manifest("test_manifest") { |
| 91 name = "filesystem_service_unittests" | 95 name = "filesystem_service_unittests" |
| 92 source = "test_manifest.json" | 96 source = "test_manifest.json" |
| 93 } | 97 } |
| 98 |
| 99 catalog("filesystem_service_unittests_catalog") { |
| 100 embedded_services = [ ":test_manifest" ] |
| 101 standalone_services = [ ":manifest" ] |
| 102 } |
| 103 |
| 104 copy("filesystem_service_unittests_catalog_copy") { |
| 105 sources = get_target_outputs(":filesystem_service_unittests_catalog") |
| 106 outputs = [ |
| 107 "${root_out_dir}/filesystem_service_unittests_catalog.json", |
| 108 ] |
| 109 deps = [ |
| 110 ":filesystem_service_unittests_catalog", |
| 111 ] |
| 112 } |
| OLD | NEW |