|  | # 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/cpp/sdk_source_set.gni") | 
|  |  | 
|  | sdk_source_set("cpp") { | 
|  | testonly = true | 
|  |  | 
|  | category = "partner" | 
|  |  | 
|  | sdk_name = "sys_cpp_testing" | 
|  |  | 
|  | include_base = "//sdk" | 
|  |  | 
|  | sources = [ | 
|  | "component_context_provider.cc", | 
|  | "component_context_provider.h", | 
|  | "enclosing_environment.cc", | 
|  | "enclosing_environment.h", | 
|  | "fake_component.cc", | 
|  | "fake_component.h", | 
|  | "fake_launcher.cc", | 
|  | "fake_launcher.h", | 
|  | "launcher_impl.cc", | 
|  | "launcher_impl.h", | 
|  | "service_directory_provider.cc", | 
|  | "service_directory_provider.h", | 
|  | "test_with_environment.cc", | 
|  | "test_with_environment.h", | 
|  | ] | 
|  |  | 
|  | public_deps = [ | 
|  | "//sdk/fidl/fuchsia.io:fuchsia.io_hlcpp", | 
|  | "//sdk/lib/fit", | 
|  | "//sdk/lib/sys/cpp", | 
|  | "//sdk/lib/vfs/cpp", | 
|  | "//zircon/system/ulib/async-loop/testing:async-loop-testing", | 
|  | "//zircon/system/ulib/zx", | 
|  | ] | 
|  |  | 
|  | deps = [ "//sdk/lib/fdio" ] | 
|  |  | 
|  | public_configs = [ "//sdk/config" ] | 
|  | } | 
|  |  | 
|  | # DEPRECATED, use `:cpp` instead. | 
|  | group("unit") { | 
|  | # TODO(fxbug.dev/82270): Remove or refactor deprecated references to `:unit`. | 
|  | testonly = true | 
|  |  | 
|  | public_deps = [ ":cpp" ] | 
|  | } | 
|  |  | 
|  | source_set("integration_fixture") { | 
|  | testonly = true | 
|  |  | 
|  | sources = [ "test_with_environment_fixture.h" ] | 
|  |  | 
|  | public_deps = [ | 
|  | "//sdk/lib/sys/cpp/testing:cpp", | 
|  | "//src/lib/testing/loop_fixture", | 
|  | "//zircon/system/ulib/async-loop/testing:async-loop-testing", | 
|  | ] | 
|  | } |