| # 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. |
| |
| source_set("common_deps") { |
| testonly = true |
| sources = [ |
| "utils.cc", |
| "utils.h", |
| ] |
| public_deps = [ "//src/ui/scenic/lib/view_tree:view_tree_snapshot" ] |
| } |
| |
| executable("view_tree_test_bin") { |
| testonly = true |
| sources = [ |
| "snapshot_dump_unittest.cc", |
| "snapshot_types_unittest.cc", |
| "view_ref_installed_impl_unittest.cc", |
| "view_tree_snapshotter_unittest.cc", |
| ] |
| deps = [ |
| ":common_deps", |
| "//sdk/lib/ui/scenic/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture:gtest", |
| "//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", |
| ] |
| } |
| |
| executable("geometry_provider_test_bin") { |
| testonly = true |
| sources = [ "geometry_provider_manager_unittest.cc" ] |
| deps = [ |
| ":common_deps", |
| "//sdk/lib/ui/scenic/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture:gtest", |
| "//src/ui/scenic/lib/view_tree:geometry_provider", |
| "//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", |
| ] |
| } |