| # Copyright 2023 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/components.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| group("realm-proxy") { |
| testonly = true |
| deps = [ |
| ":bin", |
| ":default", |
| ":pkg", |
| ":tests", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [] |
| } |
| |
| rustc_binary("bin") { |
| testonly = true |
| edition = "2021" |
| name = "timekeeper-test-realm-factory" |
| sources = [ |
| "src/main.rs", |
| "src/realm_factory.rs", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.metrics.test:fuchsia.metrics.test_rust", |
| "//sdk/rust/zx", |
| "//sdk/rust/zx-status", |
| "//src/lib/fake-clock/fidl:fidl_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/fuchsia-component-test", |
| "//src/sys/time/testing:timekeeper_integration", |
| "//src/sys/time/testing/fidl/test.time.realm:fidl_rust", |
| "//src/testing/realm_proxy", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| ] |
| } |
| |
| fuchsia_component("default") { |
| testonly = true |
| manifest = "meta/default.cml" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_package("pkg") { |
| package_name = "timekeeper-test-realm-factory" |
| testonly = true |
| deps = [ |
| ":default", |
| "//src/cobalt/bin/testing/fake_cobalt:component_v2", |
| "//src/lib/fake-clock/svc", |
| "//src/lib/fuchsia-component-test/realm_builder_server:realm_builder_server_component", |
| "//src/sys/time/testing:config-values-faketime", |
| "//src/sys/time/testing:config-values-integration", |
| "//src/sys/time/testing:timekeeper_for_integration", |
| "//src/sys/time/testing:timekeeper_with_fake_time", |
| "//src/sys/time/testing/dev_time_source:component", |
| ] |
| } |