| # Copyright 2019 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/test/test_package.gni") |
| |
| ############################################################################### |
| # GROUPS |
| ############################################################################### |
| group("tests") { |
| testonly = true |
| |
| public_deps = [ ":boot_log_checker_tests" ] |
| } |
| |
| ############################################################################### |
| # PACKAGES |
| ############################################################################### |
| test_package("boot_log_checker_tests") { |
| tests = [ |
| { |
| name = "reboot_log_handler_unittest" |
| }, |
| ] |
| |
| deps = [ ":reboot_log_handler_unittest" ] |
| } |
| |
| ############################################################################### |
| # EXECUTABLES |
| ############################################################################### |
| executable("reboot_log_handler_unittest") { |
| testonly = true |
| |
| sources = [ |
| "reboot_log_handler_unittest.cc", |
| "stub_crash_reporter.cc", |
| "stub_crash_reporter.h", |
| "stub_network_reachability_provider.h", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.feedback", |
| "//src/developer/feedback/boot_log_checker:src", |
| "//src/developer/feedback/testing:cobalt_test_fixture", |
| "//src/developer/feedback/testing:gpretty_printers", |
| "//src/developer/feedback/testing:gtest_with_syslog_main", |
| "//src/developer/feedback/testing:unit_test_fixture", |
| "//src/developer/feedback/testing/stubs:stub_cobalt_logger_factory", |
| "//src/developer/feedback/utils:cobalt", |
| "//src/lib/files", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/zx", |
| "//zircon/system/fidl/fuchsia-net", |
| ] |
| |
| # TODO(46538): Fix the leaks and remove this. |
| deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ] |
| } |