[fuchsia] Inject components from test pkg

Make the `crashpad-test` package hermetic and describe a correct build
graph by explicitly expressing dependency edges to components. Inject
component dependencies from the hermetic package in integration tests.

Bug: fuchsia:84248
Change-Id: I20915acf6171b532b2c94941f33dc8eb90fb6776
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3197800
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Amanda Tait 2021-09-30 18:01:25 -04:00 committed by Crashpad LUCI CQ
parent 1ba15daa73
commit ec7a457e86
2 changed files with 7 additions and 2 deletions

View File

@ -80,6 +80,11 @@ if (crashpad_is_in_chromium || crashpad_is_in_fuchsia) {
fuchsia_test_package("crashpad-test") {
test_components = [ ":crashpad-test-component" ]
deps = [
"//src/connectivity/network/dns:component-legacy",
"//src/connectivity/network/netstack:component-legacy",
]
test_specs = {
log_settings = {
max_severity = "FATAL"

View File

@ -2,8 +2,8 @@
"facets": {
"fuchsia.test": {
"injected-services": {
"fuchsia.net.name.Lookup": "fuchsia-pkg://fuchsia.com/dns-resolver#meta/dns-resolver.cmx",
"fuchsia.posix.socket.Provider": "fuchsia-pkg://fuchsia.com/netstack#meta/netstack.cmx"
"fuchsia.net.name.Lookup": "fuchsia-pkg://fuchsia.com/crashpad-test#meta/dns-resolver.cmx",
"fuchsia.posix.socket.Provider": "fuchsia-pkg://fuchsia.com/crashpad-test#meta/netstack.cmx"
}
}
},