blob: 9ebb6f8fdc7aa1fea240cb6134ce9bd9c451e3f7 [file] [log] [blame]
# 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/test/test_package.gni")
group("tests") {
testonly = true
deps = [
":modular_integration_tests",
"//peridot/packages/tests:modular_test_harness",
]
}
executable("last_focus_time_test") {
testonly = true
output_name = "last_focus_time_test"
sources = [
"last_focus_time_test.cc",
]
deps = [
"//peridot/lib/testing:session_shell_impl",
"//peridot/public/lib/modular_test_harness/cpp:test_harness_fixture",
"//sdk/fidl/fuchsia.modular.testing",
"//sdk/fidl/fuchsia.sys",
"//sdk/fidl/fuchsia.ui.views",
"//sdk/lib/sys/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest_main",
]
}
executable("session_shell_test") {
testonly = true
sources = [
"session_shell_test.cc",
]
deps = [
"//garnet/public/lib/fsl",
"//peridot/lib/testing:session_shell_base",
"//peridot/public/lib/modular_test_harness/cpp:test_harness_fixture",
"//sdk/fidl/fuchsia.modular.testing",
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
]
}
executable("intents_test") {
testonly = true
sources = [
"intents_test.cc",
]
deps = [
"//garnet/public/lib/callback",
"//peridot/lib/testing:session_shell_impl",
"//peridot/public/lib/app_driver/cpp:module_driver",
"//peridot/public/lib/async/cpp:future",
"//peridot/public/lib/modular_test_harness/cpp:test_harness_fixture",
"//sdk/fidl/fuchsia.modular",
"//sdk/fidl/fuchsia.modular.testing",
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//zircon/public/lib/async-loop-cpp",
]
}
executable("story_shell_factory_test") {
testonly = true
output_name = "story_shell_factory_test"
sources = [
"story_shell_factory_test.cc",
]
deps = [
"//garnet/public/lib/fsl",
"//garnet/public/lib/fxl",
"//peridot/lib/testing:session_shell_impl",
"//peridot/public/lib/modular_test_harness/cpp:test_harness_fixture",
"//sdk/fidl/fuchsia.modular.testing",
"//sdk/fidl/fuchsia.sys",
"//sdk/lib/sys/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//zircon/public/lib/async-loop-cpp",
]
}
test_package("modular_integration_tests") {
tests = [
{
name = "last_focus_time_test"
environments = basic_envs
},
{
name = "session_shell_test"
environments = basic_envs
},
{
name = "intents_test"
environments = basic_envs
},
{
name = "story_shell_factory_test"
environments = basic_envs
},
]
deps = [
":intents_test",
":last_focus_time_test",
":session_shell_test",
":story_shell_factory_test",
"//garnet/public/lib/callback",
"//peridot/public/lib/app_driver/cpp",
"//sdk/fidl/fuchsia.modular",
"//src/lib/fxl",
"//zircon/public/lib/async-loop-cpp",
]
}