| # Copyright 2022 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") |
| |
| executable("bin") { |
| output_name = "calc_integration_test_cpp" |
| sources = [ "calc_integration_test.cc" ] |
| deps = [ |
| "//examples/fidl/calculator/fidl:calculator_cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/sys/cpp", |
| "//sdk/lib/sys/cpp/testing:unit", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture", |
| "//third_party/googletest:gtest", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| testonly = true |
| } |
| |
| fuchsia_component("calc_integration_test_component_cpp") { |
| testonly = true |
| component_name = "calc_integration_test" |
| manifest = "meta/calc_integration_test.cml" |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_test_package("calculator-integration-test-cpp") { |
| test_components = [ ":calc_integration_test_component_cpp" ] |
| deps = [ "//examples/fidl/calculator/cpp/server:component" ] |
| } |