| # Copyright 2021 The Fuchsia 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/testing/cc_test_executable.gni") |
| import("//sdk/ctf/build/ctf.gni") |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":ctf-tests", |
| ":fuchsia-settings-tests-package", |
| ] |
| } |
| |
| group("ctf-tests") { |
| testonly = true |
| deps = [ ":fuchsia-settings-tests_archive" ] |
| } |
| |
| cc_test_executable("settings_test_bin") { |
| testonly = true |
| |
| sources = [ "privacy_test.cc" ] |
| |
| deps = [ |
| "testing/fidl:fuchsia.settings.test_hlcpp", |
| "//sdk/fidl/fuchsia.component:fuchsia.component_hlcpp", |
| "//sdk/fidl/fuchsia.component.sandbox:fuchsia.component.sandbox_hlcpp", |
| "//sdk/fidl/fuchsia.settings:fuchsia.settings_hlcpp", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/sys/cpp", |
| "//sdk/testing/fidl:fidl_test_hlcpp", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_component("test-suite") { |
| testonly = true |
| manifest = "meta/settings_test.cml" |
| deps = [ ":settings_test_bin" ] |
| } |
| |
| ctf_fuchsia_package("fuchsia-settings-tests") { |
| package_name = "fuchsia-settings-tests" |
| testonly = true |
| deps = [ ":test-suite" ] |
| } |
| |
| fuchsia_test_component("test-root") { |
| testonly = true |
| manifest = "meta/test-root.cml" |
| test_type = "ctf" |
| } |
| |
| fuchsia_test_package("fuchsia-settings-tests-package") { |
| test_components = [ ":test-root" ] |
| subpackages = [ |
| ":fuchsia-settings-tests", |
| "testing/realm-factory", |
| ] |
| } |