blob: 240c3c22238437cc926ee53640ac31685102b114 [file] [log] [blame]
# 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.
group("testing") {
testonly = true
deps = [
":component_base",
":component_main",
":entity_resolver_fake",
":ledger_repository_for_testing",
":mock_base",
":module_facet_reader_fake",
":session_shell_base",
":session_shell_impl",
":story_controller_mock",
":story_provider_mock",
":test_driver",
":test_story_command_executor",
":test_with_ledger",
":test_with_session_storage",
":wait_until_idle",
]
}
source_set("component_base") {
testonly = true
sources = [ "component_base.h" ]
public_deps = [
":component_main",
"//sdk/lib/sys/cpp",
"//src/lib/fxl",
"//src/modular/lib/fidl:single_service_app",
"//src/modular/lib/integration_testing/cpp",
]
}
source_set("component_main") {
testonly = true
sources = [ "component_main.h" ]
public_deps = [
"//src/modular/lib/app_driver/cpp:app_driver",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
}
source_set("entity_resolver_fake") {
testonly = true
sources = [
"entity_resolver_fake.cc",
"entity_resolver_fake.h",
]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//src/lib/fxl",
]
deps = [ "//src/lib/fsl" ]
}
source_set("module_facet_reader_fake") {
testonly = true
sources = [
"module_facet_reader_fake.cc",
"module_facet_reader_fake.h",
]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//src/lib/fxl",
"//src/modular/lib/module_manifest:module_facet_reader",
]
}
source_set("session_shell_base") {
testonly = true
sources = [ "session_shell_base.h" ]
public_deps = [
":component_base",
":session_shell_impl",
]
}
source_set("session_shell_impl") {
testonly = true
sources = [
"session_shell_impl.cc",
"session_shell_impl.h",
]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//sdk/fidl/fuchsia.ui.views",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//src/lib/fsl",
"//src/lib/fxl",
"//src/modular/lib/integration_testing/cpp",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
}
source_set("story_controller_mock") {
testonly = true
sources = [ "story_controller_mock.h" ]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//sdk/fidl/fuchsia.ui.views",
"//src/lib/fxl",
]
deps = [ "//sdk/lib/fidl/cpp" ]
}
source_set("story_provider_mock") {
testonly = true
sources = [ "story_provider_mock.h" ]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//src/lib/fxl",
]
deps = [
":story_controller_mock",
"//sdk/lib/fidl/cpp",
]
}
source_set("test_story_command_executor") {
testonly = true
sources = [
"test_story_command_executor.cc",
"test_story_command_executor.h",
]
deps = [
"//sdk/fidl/fuchsia.modular",
"//src/modular/bin/sessionmgr/puppet_master:story_command_executor",
"//src/modular/lib/fidl:clone",
]
public_deps = [ "//src/modular/bin/sessionmgr/storage" ]
}
source_set("test_with_ledger") {
testonly = true
sources = [
"test_with_ledger.cc",
"test_with_ledger.h",
]
public_deps = [
":ledger_repository_for_testing",
"//garnet/public/lib/gtest",
"//sdk/lib/sys/cpp",
"//src/lib/fsl",
"//src/lib/fxl",
"//src/modular/lib/ledger_client:page_client",
"//third_party/googletest:gtest",
]
}
source_set("test_with_session_storage") {
testonly = true
sources = [
"test_with_session_storage.cc",
"test_with_session_storage.h",
]
public_deps = [
":test_with_ledger",
"//sdk/fidl/fuchsia.modular",
"//src/modular/bin/sessionmgr/storage",
]
}
source_set("ledger_repository_for_testing") {
testonly = true
sources = [
"ledger_repository_for_testing.cc",
"ledger_repository_for_testing.h",
]
deps = [
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//src/ledger/fidl/fuchsia.ledger",
"//src/ledger/fidl/fuchsia.ledger.internal",
"//src/lib/fsl",
"//src/lib/fxl",
"//src/modular/lib/common:teardown",
"//src/modular/lib/fidl:app_client",
"//src/modular/lib/ledger_client:constants",
]
public_deps = [
"//sdk/fidl/fuchsia.modular",
"//src/modular/lib/scoped_tmpfs",
]
}
source_set("mock_base") {
testonly = true
sources = [
"mock_base.cc",
"mock_base.h",
]
deps = [
"//src/lib/fxl",
"//third_party/googletest:gtest",
]
}
source_set("wait_until_idle") {
testonly = true
sources = [ "wait_until_idle.h" ]
public_deps = [
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/async-loop-default",
]
deps = [
"//src/lib/fsl",
"//third_party/googletest:gtest",
]
}
source_set("test_driver") {
sources = [ "test_driver.h" ]
}