| # 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") | |
| import("//build/components/fuchsia_unittest_component.gni") | |
| import("//build/testing/cc_test_executable.gni") | |
| ############################################################################### | |
| # EXECUTABLES | |
| ############################################################################### | |
| cc_test_executable("annotation_manager_unittest_exe") { | |
| testonly = true | |
| sources = [ "annotation_manager_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/syslog/cpp", | |
| "//src/developer/forensics/feedback/annotations", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("attachment_manager_unittest_exe") { | |
| testonly = true | |
| sources = [ "attachment_manager_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_hlcpp", | |
| "//sdk/fidl/fuchsia.intl:fuchsia.intl_hlcpp", | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/fit-promise", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:log_message", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/developer/forensics/testing/stubs:device_id_provider", | |
| "//src/developer/forensics/testing/stubs:diagnostics", | |
| "//src/developer/forensics/utils:logs", | |
| "//src/developer/forensics/utils:time", | |
| "//src/developer/forensics/utils/cobalt", | |
| "//src/lib/files", | |
| "//src/lib/fxl", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| } | |
| cc_test_executable("annotation_metrics_unittest_exe") { | |
| testonly = true | |
| sources = [ "annotation_metrics_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback/annotations", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("attachment_metrics_unittest_exe") { | |
| testonly = true | |
| # "attachment_metrics_unittest_exe" is rather generic for the | |
| # default_output_dir that is set to root_out_dir so instead we write the | |
| # binary to target_out_dir. | |
| output_dir = target_out_dir | |
| sources = [ "attachment_metrics_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("battery_info_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "battery_info_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.power.battery:fuchsia.power.battery_cpp", | |
| "//src/developer/forensics/feedback/annotations:battery_info_provider", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:battery_info_provider", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("board_info_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "board_info_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_cpp", | |
| "//src/developer/forensics/feedback/annotations:board_info_provider", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("config_unittest_exe") { | |
| testonly = true | |
| sources = [ "config_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/syslog/cpp", | |
| "//src/developer/forensics/feedback:config", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/lib/files", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| "//third_party/rapidjson", | |
| ] | |
| } | |
| cc_test_executable("current_channel_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "current_channel_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.update.channel:fuchsia.update.channel_cpp", | |
| "//src/developer/forensics/feedback/annotations:current_channel_provider", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("data_register_unittest_exe") { | |
| testonly = true | |
| sources = [ "data_register_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp", | |
| "//src/developer/forensics/feedback/annotations:data_register", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/lib/files", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("device_id_provider_unittest_exe") { | |
| testonly = true | |
| # "device_id_provider_unittest" is used elsewhere in Forensics. | |
| output_dir = target_out_dir | |
| sources = [ "device_id_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp", | |
| "//sdk/lib/fit-promise", | |
| "//src/developer/forensics/feedback/annotations:device_id_provider", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:device_id_provider", | |
| "//src/developer/forensics/utils:errors", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("disk_backed_system_log_unittest_exe") { | |
| testonly = true | |
| sources = [ "disk_backed_system_log_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:disk_backed_system_log", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/developer/forensics/testing/stubs:system_log_recorder", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/developer/forensics/utils/cobalt", | |
| "//src/developer/forensics/utils/redact", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("encode_unittest_exe") { | |
| testonly = true | |
| sources = [ "encode_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback/annotations", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("fidl_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "fidl_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp", | |
| "//sdk/lib/vfs/cpp", | |
| "//src/developer/forensics/feedback/annotations:fidl_provider", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:device_id_provider", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("file_backed_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "file_backed_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/sys/cpp/testing:cpp", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:file_backed_provider", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("inspect_unittest_exe") { | |
| testonly = true | |
| sources = [ "inspect_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/sys/cpp/testing:cpp", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:inspect", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:diagnostics", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("intl_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "intl_provider_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback:constants", | |
| "//src/developer/forensics/feedback/annotations:intl_provider", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:intl_provider", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| } | |
| cc_test_executable("previous_boot_inspect_unittest_exe") { | |
| testonly = true | |
| sources = [ "previous_boot_inspect_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.diagnostics.persistence:fuchsia.diagnostics.persistence_cpp", | |
| "//sdk/fidl/fuchsia.io:fuchsia.io_cpp", | |
| "//sdk/lib/fdio", | |
| "//sdk/lib/sys/cpp/testing:cpp", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:previous_boot_inspect", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:previous_boot_data_provider", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/developer/forensics/utils/redact", | |
| "//src/lib/files", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("previous_boot_log_unittest_exe") { | |
| testonly = true | |
| sources = [ "previous_boot_log_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/sys/cpp/testing:cpp", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:previous_boot_log", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("kernel_log_integration_test_exe") { | |
| testonly = true | |
| sources = [ "kernel_log_integration_test.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp", | |
| "//sdk/lib/component/incoming/cpp", | |
| "//src/developer/forensics/feedback/attachments", | |
| "//src/developer/forensics/feedback/attachments:kernel_log", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/utils:errors", | |
| "//src/lib/fxl", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/loop_fixture:gtest", | |
| "//src/lib/testing/predicates", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/zx", | |
| ] | |
| } | |
| cc_test_executable("last_reboot_unittest_exe") { | |
| testonly = true | |
| sources = [ "last_reboot_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_hlcpp", | |
| "//src/developer/forensics/feedback:main_service", | |
| "//src/developer/forensics/feedback/reboot_log", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/developer/forensics/testing/stubs:crash_reporter", | |
| "//src/developer/forensics/utils/cobalt", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("main_service_unittest_exe") { | |
| testonly = true | |
| # "main_service_unittest_exe" is used a bunch in Forensics. | |
| output_dir = target_out_dir | |
| sources = [ "main_service_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp", | |
| "//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_cpp_testing", | |
| "//src/developer/forensics/feedback:main_service", | |
| "//src/developer/forensics/feedback/reboot_log", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:cobalt", | |
| "//src/developer/forensics/testing/stubs:crash_reporter", | |
| "//src/developer/forensics/testing/stubs:fidl_server", | |
| "//src/developer/forensics/utils/redact", | |
| "//src/lib/files", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("namespace_init_unittest_exe") { | |
| testonly = true | |
| # "namespace_init_unittest_exe" is also used by feedback-data. | |
| output_dir = target_out_dir | |
| sources = [ "namespace_init_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/syslog/cpp", | |
| "//src/developer/forensics/feedback:namespace_init", | |
| "//src/developer/forensics/feedback_data/system_log_recorder:reader", | |
| "//src/developer/forensics/feedback_data/system_log_recorder/encoding:production", | |
| "//src/developer/forensics/feedback_data/system_log_recorder/encoding:version", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:log_message", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/utils:logs", | |
| "//src/lib/files", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("network_watcher_unittest_exe") { | |
| testonly = true | |
| sources = [ "network_watcher_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.net.reachability:fuchsia.net.reachability_cpp_testing", | |
| "//src/developer/forensics/feedback:network_watcher", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:fidl_server", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("prod_configs_unittest_exe") { | |
| testonly = true | |
| # "prod_configs_unittest_exe" exists in | |
| # //src/developer/forensics/crash_reports/BUILD.gn | |
| output_dir = target_out_dir | |
| sources = [ "prod_configs_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback:config", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/lib/files", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("product_info_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "product_info_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_cpp", | |
| "//sdk/fidl/fuchsia.intl:fuchsia.intl_cpp", | |
| "//src/developer/forensics/feedback/annotations:product_info_provider", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("redactor_factory_unittest_exe") { | |
| testonly = true | |
| sources = [ "redactor_factory_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback:redactor_factory", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("startup_annotations_unittest_exe") { | |
| testonly = true | |
| sources = [ "startup_annotations_unittest.cc" ] | |
| deps = [ | |
| "//sdk/lib/syslog/cpp", | |
| "//src/developer/forensics/feedback:constants", | |
| "//src/developer/forensics/feedback/annotations", | |
| "//src/developer/forensics/feedback/reboot_log", | |
| "//src/developer/forensics/feedback_data:constants", | |
| "//src/developer/forensics/testing:gmatchers", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:scoped_memfs_manager", | |
| "//src/lib/files", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("stop_signals_unittest_exe") { | |
| testonly = true | |
| sources = [ "stop_signals_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback:stop_signals", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("target_channel_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "target_channel_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.update.channelcontrol:fuchsia.update.channelcontrol_cpp", | |
| "//src/developer/forensics/feedback/annotations:target_channel_provider", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("time_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "time_provider_unittest.cc" ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.time:fuchsia.time_cpp", | |
| "//src/developer/forensics/feedback/annotations:time_provider", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| cc_test_executable("ui_state_provider_unittest_exe") { | |
| testonly = true | |
| sources = [ "ui_state_provider_unittest.cc" ] | |
| deps = [ | |
| "//src/developer/forensics/feedback/annotations:ui_state_provider", | |
| "//src/developer/forensics/testing:backoff", | |
| "//src/developer/forensics/testing:gpretty_printers", | |
| "//src/developer/forensics/testing:gtest_with_syslog_main", | |
| "//src/developer/forensics/testing:unit_test_fixture", | |
| "//src/developer/forensics/testing/stubs:ui_state_provider", | |
| "//src/lib/timekeeper:testing", | |
| "//third_party/googletest:gmock", | |
| "//third_party/googletest:gtest", | |
| ] | |
| } | |
| ############################################################################### | |
| # RESOURCES | |
| ############################################################################### | |
| resource("prod_snapshot_configs") { | |
| sources = | |
| [ "//src/developer/forensics/feedback/configs/snapshot/default.json" ] | |
| outputs = [ "data/snapshot/configs/{{source_file_part}}" ] | |
| } | |
| ############################################################################### | |
| # COMPONENTS | |
| ############################################################################### | |
| fuchsia_unittest_component("annotation_manager_unittest") { | |
| deps = [ | |
| ":annotation_manager_unittest_exe", | |
| "//src/sys/test_runners/gtest:death_test", | |
| ] | |
| } | |
| fuchsia_test_component("attachment_manager_unittest") { | |
| manifest = "meta/attachment_manager_unittest.cml" | |
| deps = [ ":attachment_manager_unittest_exe" ] | |
| test_type = "system" | |
| } | |
| fuchsia_unittest_component("annotation_metrics_unittest") { | |
| deps = [ ":annotation_metrics_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("attachment_metrics_unittest") { | |
| deps = [ ":attachment_metrics_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("battery_info_provider_unittest") { | |
| deps = [ ":battery_info_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("board_info_provider_unittest") { | |
| deps = [ ":board_info_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("config_unittest") { | |
| deps = [ | |
| ":config_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_unittest_component("current_channel_provider_unittest") { | |
| deps = [ ":current_channel_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("data_register_unittest") { | |
| deps = [ | |
| ":data_register_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_unittest_component("device_id_provider_unittest") { | |
| deps = [ | |
| ":device_id_provider_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_unittest_component("disk_backed_system_log_unittest") { | |
| deps = [ | |
| ":disk_backed_system_log_unittest_exe", | |
| "//src/sys/test_runners/gtest:death_test", | |
| ] | |
| } | |
| fuchsia_unittest_component("encode_unittest") { | |
| deps = [ ":encode_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("fidl_provider_unittest") { | |
| deps = [ ":fidl_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("file_backed_provider_unittest") { | |
| deps = [ | |
| ":file_backed_provider_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| "//src/sys/test_runners/gtest:death_test", | |
| ] | |
| } | |
| fuchsia_unittest_component("inspect_unittest") { | |
| deps = [ | |
| ":inspect_unittest_exe", | |
| "//src/sys/test_runners/gtest:death_test", | |
| ] | |
| } | |
| fuchsia_unittest_component("intl_provider_unittest") { | |
| deps = [ ":intl_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("previous_boot_inspect_unittest") { | |
| deps = [ | |
| ":previous_boot_inspect_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_unittest_component("previous_boot_log_unittest") { | |
| deps = [ | |
| ":previous_boot_log_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| "//src/sys/test_runners/gtest:death_test", | |
| ] | |
| } | |
| fuchsia_test_component("kernel_log_integration_test") { | |
| manifest = "meta/kernel_log_integration_test.cml" | |
| deps = [ ":kernel_log_integration_test_exe" ] | |
| test_type = "system" | |
| } | |
| fuchsia_unittest_component("last_reboot_unittest") { | |
| deps = [ | |
| ":last_reboot_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_component("main_service_unittest") { | |
| testonly = true | |
| manifest = "meta/main_service_unittest.cml" | |
| deps = [ ":main_service_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("namespace_init_unittest") { | |
| deps = [ | |
| ":namespace_init_unittest_exe", | |
| "//src/sys/test_runners:tmp_storage", | |
| ] | |
| } | |
| fuchsia_unittest_component("network_watcher_unittest") { | |
| deps = [ ":network_watcher_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("prod_configs_unittest") { | |
| deps = [ | |
| ":prod_configs_unittest_exe", | |
| ":prod_snapshot_configs", | |
| ] | |
| } | |
| fuchsia_unittest_component("product_info_provider_unittest") { | |
| deps = [ ":product_info_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("redactor_factory_unittest") { | |
| deps = [ ":redactor_factory_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("startup_annotations_unittest") { | |
| deps = [ ":startup_annotations_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("stop_signals_unittest") { | |
| deps = [ ":stop_signals_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("target_channel_provider_unittest") { | |
| deps = [ ":target_channel_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("time_provider_unittest") { | |
| deps = [ ":time_provider_unittest_exe" ] | |
| } | |
| fuchsia_unittest_component("ui_state_provider_unittest") { | |
| deps = [ ":ui_state_provider_unittest_exe" ] | |
| } | |
| ############################################################################### | |
| # PACKAGES | |
| ############################################################################### | |
| fuchsia_test_package("feedback-tests") { | |
| test_components = [ | |
| ":annotation_manager_unittest", | |
| ":attachment_manager_unittest", | |
| ":annotation_metrics_unittest", | |
| ":attachment_metrics_unittest", | |
| ":battery_info_provider_unittest", | |
| ":board_info_provider_unittest", | |
| ":config_unittest", | |
| ":current_channel_provider_unittest", | |
| ":data_register_unittest", | |
| ":device_id_provider_unittest", | |
| ":disk_backed_system_log_unittest", | |
| ":encode_unittest", | |
| ":fidl_provider_unittest", | |
| ":file_backed_provider_unittest", | |
| ":last_reboot_unittest", | |
| ":kernel_log_integration_test", | |
| ":inspect_unittest", | |
| ":intl_provider_unittest", | |
| ":previous_boot_inspect_unittest", | |
| ":previous_boot_log_unittest", | |
| ":main_service_unittest", | |
| ":namespace_init_unittest", | |
| ":network_watcher_unittest", | |
| ":prod_configs_unittest", | |
| ":product_info_provider_unittest", | |
| ":redactor_factory_unittest", | |
| ":startup_annotations_unittest", | |
| ":stop_signals_unittest", | |
| ":target_channel_provider_unittest", | |
| ":time_provider_unittest", | |
| ":ui_state_provider_unittest", | |
| ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "FATAL" | |
| } | |
| } | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":feedback-tests" ] | |
| } |