| # Copyright 2019 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/dart/dart_library.gni") |
| import("//build/fidl/fidl.gni") |
| import("//build/testing/environments.gni") |
| import("//topaz/runtime/dart/dart_fuchsia_test.gni") |
| import("//topaz/runtime/dart/flutter_test.gni") |
| |
| dart_library("fuchsia_modular_testing") { |
| package_name = "fuchsia_modular_testing" |
| |
| sdk_category = "partner" |
| |
| sources = [ |
| "src/agent_interceptor.dart", |
| "src/module_interceptor.dart", |
| "src/module_with_view_provider_impl.dart", |
| "src/test_harness_fixtures.dart", |
| "src/test_harness_spec_builder.dart", |
| "test.dart", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.modular", |
| "//sdk/fidl/fuchsia.modular.session", |
| "//sdk/fidl/fuchsia.modular.testing", |
| "//sdk/fidl/fuchsia.sys", |
| "//third_party/dart-pkg/pub/async", |
| "//topaz/public/dart/fidl", |
| "//topaz/public/dart/fuchsia_logger", |
| "//topaz/public/dart/fuchsia_modular", |
| "//topaz/public/dart/fuchsia_services", |
| "//topaz/public/dart/zircon", |
| "//zircon/system/fidl/fuchsia-mem", |
| ] |
| } |
| |
| fidl("test_fidl") { |
| # TODO(fxb/35879): Remove lint exclusions by fixing known FIDL lint violations in this target |
| excluded_checks = [ |
| "invalid-case-for-decl-name", |
| "string-bounds-not-specified", |
| ] |
| |
| name = "test.modular.dart" |
| |
| sources = [ "test_support/fidl/testing.fidl" ] |
| } |
| |
| # Run tese tests using: |
| # fx run-test fuchsia_modular_testing_package_integration_tests |
| dart_fuchsia_test("fuchsia_modular_testing_package_integration_tests") { |
| meta = [ |
| { |
| path = rebase_path( |
| "meta/fuchsia_modular_testing_package_integration_tests.cmx") |
| dest = "fuchsia_modular_testing_package_integration_tests.cmx" |
| }, |
| ] |
| |
| sources = [ |
| "agent_interceptor_test.dart", |
| "launch_harness_test.dart", |
| "module_interceptor_test.dart", |
| "test_harness_spec_builder_test.dart", |
| ] |
| |
| deps = [ |
| ":fuchsia_modular_testing", |
| ":test_fidl", |
| "//third_party/dart-pkg/pub/mockito", |
| "//third_party/dart-pkg/pub/test", |
| ] |
| environments = basic_envs |
| } |