| # Copyright 2023 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":unittests-package" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_fuchsia) { | |
| source_set("cpp") { | |
| sources = [ | |
| "backlight-fidl-adapter.cc", | |
| "display-engine-events-fidl.cc", | |
| "display-engine-fidl-adapter.cc", | |
| "display-engine-interface.cc", | |
| "inplace-vector.cc", | |
| ] | |
| public = [ | |
| "backlight-fidl-adapter.h", | |
| "backlight-interface.h", | |
| "display-engine-events-fidl.h", | |
| "display-engine-events-interface.h", | |
| "display-engine-fidl-adapter.h", | |
| "display-engine-interface.h", | |
| "inplace-vector.h", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.images2:fuchsia.images2_cpp", | |
| "//sdk/fidl/fuchsia.math:fuchsia.math_cpp", | |
| "//sdk/lib/driver/logging/cpp", | |
| ] | |
| visibility = [ | |
| ":*", | |
| "//src/graphics/display/*", | |
| "//vendor/google/*", | |
| ] | |
| public_deps = [ | |
| "//sdk/fidl/fuchsia.hardware.backlight:fuchsia.hardware.backlight_cpp", | |
| "//sdk/fidl/fuchsia.hardware.display.engine:fuchsia.hardware.display.engine_cpp", | |
| "//sdk/fidl/fuchsia.hardware.display.types:fuchsia.hardware.display.types_cpp", | |
| "//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_cpp", | |
| "//src/graphics/display/lib/api-types/cpp", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| public_deps += [ "//sdk/lib/driver/compat/cpp" ] | |
| } | |
| } | |
| if (is_fuchsia) { | |
| cc_test_executable("unittests") { | |
| sources = [ | |
| "backlight-fidl-adapter-test.cc", | |
| "backlight-interface-test.cc", | |
| "display-engine-events-fidl-test.cc", | |
| "display-engine-events-interface-test.cc", | |
| "display-engine-fidl-adapter-test.cc", | |
| "display-engine-interface-test.cc", | |
| "inplace-vector-test.cc", | |
| "mock-backlight.cc", | |
| "mock-backlight.h", | |
| "mock-display-engine.cc", | |
| "mock-display-engine.h", | |
| "mock-fidl-display-engine-listener.cc", | |
| "mock-fidl-display-engine-listener.h", | |
| ] | |
| output_name = "display-api-protocols-cpp-tests" | |
| deps = [ | |
| ":cpp", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop:async-loop-default", | |
| "//sdk/lib/driver/testing/cpp", | |
| "//sdk/lib/driver/testing/cpp:scoped_global_logger", | |
| "//sdk/lib/fit", | |
| "//src/devices/bin/driver_runtime", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/predicates", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/image-format", | |
| "//zircon/system/ulib/sync:sync-cpp", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| deps += [ "//third_party/googletest:gmock" ] | |
| } | |
| } | |
| fuchsia_unittest_package("unittests-package") { | |
| package_name = "display-api-protocols-cpp-tests-gn" | |
| component_name = "display-api-protocols-cpp-tests" | |
| deps = [ ":unittests" ] | |
| } |