blob: 7ca5988eccee816a13e589ebbc7a41235df8e0b9 [file] [log] [blame]
// 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(fxbug.dev/91934): This shard defines a realm for tests in chromium. Once we are able
// to define these out of tree this definition should be moved to chromium.
{
collections: [
{
name: "chromium-tests",
environment: "#legacy-test-env",
durability: "transient",
},
],
offer: [
{
// These hermetic protocols are offered to be used by tests.
protocol: [
"fuchsia.logger.LogSink",
"fuchsia.process.Launcher",
"fuchsia.sys2.EventSource",
// Tests can produce traces.
"fuchsia.tracing.provider.Registry",
],
from: "parent",
to: [ "#chromium-tests" ],
},
// These system capabilities are offered for use by the chromium tests.
{
protocol: [
"fuchsia.fonts.Provider",
"fuchsia.hwinfo.Product",
"fuchsia.media.Audio",
"fuchsia.media.AudioDeviceEnumerator",
"fuchsia.media.ProfileProvider",
"fuchsia.mediacodec.CodecFactory",
"fuchsia.memorypressure.Provider",
"fuchsia.posix.socket.Provider",
"fuchsia.settings.Display",
"fuchsia.sysmem.Allocator",
"fuchsia.ui.composition.Allocator",
"fuchsia.ui.scenic.Scenic",
"fuchsia.vulkan.loader.Loader",
// TODO: add any other required capabilities
],
from: "parent",
to: "#chromium-tests",
},
// Some Chromium tests require access to network services.
{
protocol: [
"fuchsia.device.NameProvider",
"fuchsia.net.http.Loader",
"fuchsia.net.interfaces.State",
"fuchsia.net.name.Lookup",
"fuchsia.posix.socket.Provider",
"fuchsia.stash.SecureStore",
],
from: "parent",
to: "#chromium-tests",
},
// Test realms may offer subdirectories of config-data to test
// components. See:
// https://fuchsia.dev/fuchsia-src/development/components/data#product-specific_configuration_with_config_data
{
directory: "config-data",
from: "parent",
to: "#chromium-tests",
},
{
directory: "build-info",
from: "parent",
to: "#chromium-tests",
},
{
directory: "root-ssl-certificates",
from: "parent",
to: "#chromium-tests",
},
{
storage: "data",
from: "self",
to: [ "#chromium-tests" ],
},
{
storage: "tmp",
from: "self",
to: [ "#chromium-tests" ],
},
{
storage: "cache",
from: "self",
to: [ "#chromium-tests" ],
},
{
storage: "custom_artifacts",
from: "self",
to: "#chromium-tests",
},
],
}