| # 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/components.gni") |
| |
| group("time_zone_info") { |
| testonly = true |
| deps = [ ":tests" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":time-zone-info-service-lib-tests" ] |
| } |
| |
| source_set("time-zone-info-service-lib") { |
| sources = [ |
| "time_zone_info_service.cc", |
| "time_zone_info_service.h", |
| ] |
| |
| deps = [ |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/service/cpp", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fostr/fidl/fuchsia.intl", |
| "//src/lib/fxl", |
| "//src/lib/icu_data/cpp", |
| ] |
| |
| public_deps = [ |
| "//sdk/fidl/fuchsia.intl", |
| "//third_party/icu", |
| ] |
| } |
| |
| executable("time-zone-info-service-lib-test-bin") { |
| testonly = true |
| output_name = "time-zone-info-service-lib-test" |
| sources = [ "time_zone_info_service_test.cc" ] |
| deps = [ |
| ":time-zone-info-service-lib", |
| "//sdk/fidl/fuchsia.intl", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/cpp/testing:unit", |
| "//sdk/lib/sys/service/cpp", |
| "//src/developer/tracing/bin/trace/tests:component_context", |
| "//src/lib/fostr/fidl/fuchsia.intl", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture", |
| ] |
| } |
| |
| fuchsia_unittest_component("time-zone-info-service-lib-test") { |
| deps = [ ":time-zone-info-service-lib-test-bin" ] |
| } |
| |
| fuchsia_test_package("time-zone-info-service-lib-tests") { |
| test_components = [ ":time-zone-info-service-lib-test" ] |
| deps = [ "//src/intl:icudtl" ] |
| test_specs = { |
| log_settings = { |
| max_severity = "WARN" |
| } |
| } |
| } |