blob: 742b6b7920c5d4aca26c4ef1965bde19f2ffdef6 [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: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",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest_main",
]
}
test_package("modular_integration_tests") {
tests = [
{
name = "last_focus_time_test"
environments = basic_envs
},
{
name = "session_shell_test"
environments = basic_envs
},
]
deps = [
":last_focus_time_test",
":session_shell_test",
"//garnet/public/lib/callback",
"//peridot/public/lib/app_driver/cpp",
"//sdk/fidl/fuchsia.modular",
"//src/lib/fxl",
"//zircon/public/lib/async-loop-cpp",
]
}