| // 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. | |
| // Takes care of capability routing for "sample-app" | |
| { | |
| include: [ | |
| "//src/testing/system-validation/web/tests/meta/web_system_validation_base.cml", | |
| "inspect/offer.shard.cml", | |
| "syslog/client.shard.cml", | |
| ], | |
| program: { | |
| // Args for ui_app_instrumentor | |
| args: [ | |
| "--run-duration-sec", | |
| "10", | |
| "--trace-config", | |
| "benchmark,devtools.timeline,toplevel,v8,blink,netlog,gfx,system_metrics,app,view", | |
| ], | |
| }, | |
| children: [ | |
| { | |
| name: "sample-app", | |
| url: "#meta/web_view.cm", | |
| }, | |
| { | |
| name: "file-server", | |
| url: "#meta/file_server.cm", | |
| startup: "eager", | |
| }, | |
| ], | |
| use: [ | |
| { | |
| protocol: [ "fuchsia.ui.app.ViewProvider" ], | |
| from: "#sample-app", | |
| }, | |
| ], | |
| offer: [ | |
| // ContextFeatureFlags https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.web/context.fidl | |
| { | |
| protocol: "fuchsia.web.ContextProvider", | |
| from: "#context_provider", | |
| to: "#sample-app", | |
| }, | |
| { | |
| protocol: [ "fuchsia.posix.socket.Provider" ], | |
| from: "parent", | |
| to: "#file-server", | |
| }, | |
| { | |
| protocol: [ | |
| // context_provider_create_base.shard.cml | |
| "fuchsia.buildinfo.Provider", | |
| "fuchsia.device.NameProvider", | |
| "fuchsia.fonts.Provider", | |
| "fuchsia.intl.PropertyProvider", | |
| "fuchsia.memorypressure.Provider", | |
| "fuchsia.process.Launcher", | |
| "fuchsia.sysmem.Allocator", | |
| "fuchsia.sysmem2.Allocator", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| { | |
| protocol: [ | |
| // context_provider_create_with_audio.shard.cml | |
| "fuchsia.media.Audio", | |
| "fuchsia.media.AudioDeviceEnumerator", | |
| "fuchsia.media.SessionAudioConsumerFactory", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| { | |
| protocol: [ | |
| // context_provider_create_with_vulkan.shard.cml | |
| "fuchsia.vulkan.loader.Loader", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| { | |
| protocol: [ | |
| // context_provider_create_with_network.shard.cml | |
| "fuchsia.net.interfaces.State", | |
| "fuchsia.net.name.Lookup", | |
| "fuchsia.posix.socket.Provider", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| { | |
| protocol: [ | |
| // context_provider_create_with_view.shard.cml | |
| "fuchsia.accessibility.semantics.SemanticsManager", | |
| "fuchsia.input.virtualkeyboard.ControllerCreator", | |
| "fuchsia.ui.composition.Allocator", | |
| "fuchsia.ui.composition.Flatland", | |
| "fuchsia.ui.composition.FlatlandFactory", | |
| "fuchsia.ui.input3.Keyboard", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| { | |
| protocol: [ | |
| // web_view.cm | |
| "fuchsia.media.ProfileProvider", | |
| "fuchsia.tracing.perfetto.ProducerConnector", | |
| "fuchsia.tracing.provider.Registry", | |
| ], | |
| from: "parent", | |
| to: [ "#sample-app" ], | |
| }, | |
| ], | |
| } |