| # 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") |
| import("//build/testing/environments.gni") |
| |
| group("tests") { |
| testonly = true |
| |
| public_deps = [ ":present_view_tests" ] |
| } |
| |
| test_package("present_view_tests") { |
| deps = [ |
| ":present_view_apptests", |
| ":present_view_integration_tests", |
| ":present_view_unittests", |
| ] |
| |
| tests = [ |
| { |
| name = "present_view_apptests" |
| environments = basic_envs |
| }, |
| { |
| name = "present_view_unittests" |
| environments = basic_envs |
| }, |
| ] |
| } |
| |
| executable("present_view_unittests") { |
| testonly = true |
| |
| sources = [ "present_view_unittest.cc" ] |
| |
| deps = [ |
| "//garnet/public/lib/gtest", |
| "//sdk/fidl/fuchsia.sys", |
| "//sdk/fidl/fuchsia.ui.app", |
| "//sdk/fidl/fuchsia.ui.policy", |
| "//sdk/fidl/fuchsia.ui.views", |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/sys/cpp/testing:unit", |
| "//src/lib/fsl", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/ui/tools/present_view:lib", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| ] |
| } |
| |
| executable("present_view_apptests") { |
| testonly = true |
| |
| sources = [ "present_view_apptest.cc" ] |
| |
| deps = [ |
| "//garnet/public/lib/gtest", |
| "//sdk/fidl/fuchsia.sys", |
| "//sdk/fidl/fuchsia.ui.app", |
| "//sdk/fidl/fuchsia.ui.policy", |
| "//sdk/fidl/fuchsia.ui.views", |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//src/lib/fsl", |
| "//src/lib/fxl/test:gtest_main", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| ] |
| } |
| |
| executable("present_view_integration_tests") { |
| testonly = true |
| |
| sources = [ "present_view_integration_test.cc" ] |
| |
| deps = [ |
| "//garnet/public/lib/gtest", |
| "//sdk/lib/sys/cpp/testing:integration", |
| "//sdk/lib/sys/cpp/testing:unit", |
| "//sdk/lib/syslog/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/ui/tools/present_view", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| ] |
| } |