blob: 7926b7c8ddb059992c09ecce06961908e3beb3e7 [file] [log] [blame]
# 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")
test_package("bugreport_tests") {
tests = [
{
name = "bugreport_unittest"
},
{
name = "bugreport_integration_test"
},
]
deps = [
":bugreport_integration_test",
":bugreport_unittest",
]
}
executable("bugreport_unittest") {
testonly = true
sources = [
"bug_reporter_unittest.cc",
"stub_feedback_data_provider.cc",
"stub_feedback_data_provider.h",
]
deps = [
"//garnet/public/lib/fsl",
"//garnet/public/lib/gtest",
"//sdk/fidl/fuchsia.feedback",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp/testing:unit",
"//src/developer/bugreport:bug_report_schema",
"//src/developer/bugreport:src",
"//src/lib/files",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//third_party/rapidjson",
"//zircon/public/lib/async-loop-cpp",
"//zircon/public/lib/zx",
]
}
executable("bugreport_integration_test") {
testonly = true
sources = [
"bug_reporter_integration_test.cc",
]
deps = [
"//src/developer/bugreport:bug_report_schema",
"//src/developer/bugreport:src",
"//src/lib/files",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//third_party/rapidjson",
]
}
if (current_toolchain == host_toolchain) {
test_package("bugreport_client_tests") {
tests = [
{
name = "bugreport_client_unittests"
},
]
deps = [
":bugreport_client_unittests",
]
}
executable("bugreport_client_unittests") {
testonly = true
sources = [
"bug_report_client_unittest.cc",
]
deps = [
"//src/developer/bugreport:bug_report_client_lib",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
}