| # Copyright 2021 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/components.gni") |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":view_tree_unittests" ] |
| } |
| |
| executable("view_tree_test_bin") { |
| testonly = true |
| sources = [ |
| "snapshot_types_unittest.cc", |
| "view_ref_installed_impl_unittest.cc", |
| "view_tree_snapshotter_unittest.cc", |
| ] |
| deps = [ |
| "//sdk/lib/ui/scenic/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/ui/scenic/lib/utils", |
| "//src/ui/scenic/lib/view_tree:view_ref_installed", |
| "//src/ui/scenic/lib/view_tree:view_tree_snapshot", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| "//zircon/system/ulib/async-default", |
| "//zircon/system/ulib/async-testing", |
| ] |
| } |
| |
| fuchsia_unittest_package("view_tree_unittests") { |
| manifest = "meta/view_tree_unittests.cmx" |
| deps = [ ":view_tree_test_bin" ] |
| } |