| # Copyright 2022 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 = [ | |
| ":process_explorer_integration_tests_package", | |
| ":process_explorer_unit_tests", | |
| ] | |
| } | |
| ## 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") | |
| executable("mock_process") { | |
| sources = [ "mock_process.cc" ] | |
| } | |
| cc_test_executable("integration_test") { | |
| sources = [ "process_explorer_integration_test.cc" ] | |
| output_name = "process_explorer_integration_test" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_cpp", | |
| "//sdk/fidl/fuchsia.logger:fuchsia.logger_cpp", | |
| "//sdk/fidl/fuchsia.process.explorer:fuchsia.process.explorer_cpp", | |
| "//sdk/lib/fdio", | |
| "//sdk/lib/sys/component/cpp/testing:cpp", | |
| "//src/developer/process_explorer:lib", | |
| "//src/lib/fsl", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/loop_fixture", | |
| "//zircon/system/ulib/fbl", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_component_manifest("process_explorer_integration_test_manifest") { | |
| testonly = true | |
| component_name = "process_explorer_integration_test" | |
| manifest = "meta/process_explorer_integration_test.cml" | |
| } | |
| fuchsia_test_component("process_explorer_integration_test") { | |
| cm_label = ":process_explorer_integration_test_manifest" | |
| deps = [ | |
| ":integration_test", | |
| ":mock_process", | |
| ] | |
| } | |
| fuchsia_test_package("process_explorer_integration_tests_package") { | |
| package_name = "process_explorer_integration_tests-gn" | |
| test_components = [ ":process_explorer_integration_test" ] | |
| deps = [ "//src/developer/process_explorer:process_explorer_component" ] | |
| } | |
| cc_test_executable("process_explorer_unittest") { | |
| sources = [ "utils_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/process_explorer:lib", | |
| "//src/lib/fxl/test:gtest_main", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| } | |
| fuchsia_unittest_package("process_explorer_unit_tests") { | |
| package_name = "process_explorer_unit_tests-gn" | |
| component_name = "process_explorer_unit_tests" | |
| deps = [ ":process_explorer_unittest" ] | |
| } |