| # Copyright 2016 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. |
| |
| source_set("testing") { |
| testonly = true |
| |
| sources = [ |
| "startup_context_for_test.cc", |
| "startup_context_for_test.h", |
| "termination_result.h", |
| "test_with_context.cc", |
| "test_with_context.h", |
| "test_with_environment.cc", |
| "test_with_environment.h", |
| ] |
| |
| deps = [ |
| "//zircon/public/lib/async-default", |
| "//zircon/public/lib/fdio", |
| ] |
| |
| public_deps = [ |
| ":enclosing_environment", |
| ":fake_component", |
| ":fake_launcher", |
| ":test_util", |
| "//garnet/public/fidl/fuchsia.sys", |
| "//garnet/public/lib/component/cpp:environment_services", |
| "//garnet/public/lib/fidl/cpp", |
| "//garnet/public/lib/gtest", |
| "//garnet/public/lib/svc/cpp", |
| "//zircon/public/lib/fs", |
| ] |
| } |
| |
| source_set("test_util") { |
| testonly = true |
| |
| sources = [ |
| "test_util.cc", |
| "test_util.h", |
| ] |
| |
| public_deps = [ |
| "//garnet/public/fidl/fuchsia.sys", |
| "//zircon/public/lib/fs", |
| ] |
| |
| deps = [ |
| "//zircon/public/lib/fdio", |
| ] |
| } |
| |
| source_set("fake_launcher") { |
| testonly = true |
| |
| sources = [ |
| "fake_launcher.cc", |
| "fake_launcher.h", |
| ] |
| |
| public_deps = [ |
| "//garnet/public/fidl/fuchsia.sys", |
| "//garnet/public/lib/fidl/cpp", |
| "//zircon/public/lib/fs", |
| ] |
| } |
| |
| source_set("enclosing_environment") { |
| testonly = true |
| |
| sources = [ |
| "enclosing_environment.cc", |
| "enclosing_environment.h", |
| "launcher_impl.cc", |
| "launcher_impl.h", |
| ] |
| |
| deps = [ |
| ":test_util", |
| ] |
| |
| public_deps = [ |
| "//garnet/public/fidl/fuchsia.sys", |
| "//garnet/public/lib/fidl/cpp", |
| "//garnet/public/lib/svc/cpp", |
| "//zircon/public/lib/async-default", |
| "//zircon/public/lib/fs", |
| ] |
| } |
| |
| source_set("fake_component") { |
| testonly = true |
| |
| sources = [ |
| "fake_component.cc", |
| "fake_component.h", |
| ] |
| |
| public_deps = [ |
| ":fake_launcher", |
| "//zircon/public/lib/async-default", |
| "//zircon/public/lib/fs", |
| ] |
| } |