| // 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. | |
| // This is the shared manifest to creating a system validation test component. | |
| { | |
| include: [ | |
| "//src/testing/system-validation/meta/use_custom_artifact.cml", | |
| "sys/testing/elf_test_runner.shard.cml", | |
| "syslog/client.shard.cml", | |
| ], | |
| program: { | |
| binary: "bin/ui_app_instrumentor", | |
| }, | |
| // Defines API used by bin/ui_app_instrumentor. | |
| // UI example app test manifests must include one of two shapes: | |
| // | |
| // 1. For apps that serve ViewProvider: | |
| // use: [ | |
| // { | |
| // protocol: [ "fuchsia.ui.app.ViewProvider" ], | |
| // from: "#sample-app", | |
| // }, | |
| // ] | |
| // | |
| // 2. For apps that present themselves via GraphicalPresenter: | |
| // offer: [ | |
| // { | |
| // protocol: [ "fuchsia.element.GraphicalPresenter" ], | |
| // from: "parent", | |
| // to: [ "#sample-app" ], | |
| // }, | |
| // ], | |
| // use: [ | |
| // { | |
| // protocol: [ "fuchsia.component.Binder" ], | |
| // from: "#sample-app", | |
| // }, | |
| // ] | |
| use: [ | |
| { | |
| protocol: [ | |
| "fuchsia.process.Launcher", | |
| "fuchsia.session.scene.Manager", | |
| "fuchsia.tracing.controller.Provisioner", | |
| "fuchsia.tracing.controller.Session", | |
| "fuchsia.ui.composition.Screenshot", | |
| ], | |
| from: "parent", | |
| }, | |
| { | |
| event_stream: [ | |
| "started", | |
| "stopped", | |
| ], | |
| from: "parent", | |
| }, | |
| ], | |
| } |