| // 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. |
| // TODO(https://fxbug.dev/42180295): Once we are able to define these out of tree this |
| // definition should be moved to indivisual products. |
| { |
| collections: [ |
| { |
| name: "google-tests", |
| environment: "#test-env", |
| durability: "transient", |
| }, |
| ], |
| offer: [ |
| { |
| event_stream: [ "capability_requested" ], |
| from: "parent", |
| to: "#google-tests", |
| scope: "#google-tests", |
| }, |
| { |
| // These hermetic protocols are offered to be used by tests. |
| protocol: [ |
| "fuchsia.inspect.InspectSink", |
| "fuchsia.logger.LogSink", |
| "fuchsia.process.Launcher", |
| ], |
| from: "parent", |
| to: [ "#google-tests" ], |
| }, |
| { |
| // Tests can produce traces. |
| protocol: "fuchsia.tracing.provider.Registry", |
| from: "parent", |
| to: [ "#google-tests" ], |
| source_availability: "unknown", |
| availability: "optional", |
| }, |
| |
| // These system capabilities are offered for use by the google tests. |
| { |
| protocol: [ |
| "fuchsia.device.NameProvider", |
| "fuchsia.intl.PropertyProvider", |
| "fuchsia.mediacodec.CodecFactory", |
| "fuchsia.net.interfaces.State", |
| "fuchsia.net.name.Lookup", |
| "fuchsia.posix.socket.Provider", |
| "fuchsia.sysmem.Allocator", |
| "fuchsia.sysmem2.Allocator", |
| "fuchsia.vulkan.loader.Loader", |
| |
| // TODO: add any other required capabilities |
| ], |
| from: "parent", |
| to: "#google-tests", |
| }, |
| { |
| protocol: [ "fuchsia.ui.scenic.Scenic" ], |
| from: "parent", |
| to: "#google-tests", |
| availability: "same_as_target", |
| }, |
| { |
| storage: "data", |
| from: "self", |
| to: [ "#google-tests" ], |
| }, |
| { |
| storage: "tmp", |
| from: "self", |
| to: [ "#google-tests" ], |
| }, |
| { |
| storage: "cache", |
| from: "self", |
| to: [ "#google-tests" ], |
| }, |
| { |
| directory: "root-ssl-certificates", |
| from: "parent", |
| to: "#google-tests", |
| }, |
| |
| // vulkan |
| { |
| directory: [ |
| "dev-goldfish-address-space", |
| "dev-goldfish-control", |
| "dev-goldfish-pipe", |
| "dev-goldfish-sync", |
| "dev-gpu", |
| ], |
| from: "parent", |
| to: "#google-tests", |
| }, |
| ], |
| } |