Skip to content

Commit

Permalink
[fuchsia] Component framework v2 variant of web_engine_integration_tests
Browse files Browse the repository at this point in the history
Also expose fuchsia.web.Debug from context_provider when running as a
CFv2 component. This allows test clients to more easily connect to a
web_instance's Debug protocol.

Bug: 1280703, 1346920
Change-Id: I2950cdcb6fd04a8f01105196f9d03abbb1cdec3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3845254
Reviewed-by: Wez <wez@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1043983}
NOKEYCHECK=True
GitOrigin-RevId: 1e93159487a62039c8e4310042954697968b16ea
  • Loading branch information
GregTho authored and copybara-github committed Sep 7, 2022
1 parent 65a6055 commit a710f6b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/fuchsia/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ below:

### General Purpose Fragments

#### archivist.shard.test-cml
Runs an `archivist-without-attribution` with custom protocol routing for tests
that want to intercept events written to a `LogSink` by a component.

#### chromium_test_facet.shard.test-cml
Runs CFv2 tests in the "chromium" test realm. This is generally required for all
Chromium tests that must interact with true system services.
Expand Down Expand Up @@ -83,5 +87,5 @@ Contains services that need to be present when creating a `fuchsia.web.Context`.
Note that the `fuchsia.scheduler.ProfileProvider` service is only used in tests
that encounter memory pressure code.

#### web_instance_host_capabilities.test-cmx
#### web_instance_host_capabilities.test-cmx and web_instance_host.shard.test-cml
Contains services that need to be present to use `WebInstanceHost`.
23 changes: 23 additions & 0 deletions config/fuchsia/test/archivist.shard.test-cml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2022 The Chromium Authors.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
children: [
{
name: "isolated_archivist",
url: "fuchsia-pkg://fuchsia.com/archivist-without-attribution#meta/archivist-without-attribution.cm",
},
],
use: [
{
protocol: "fuchsia.logger.Log",
path: "/svc/fuchsia.logger.Log.isolated",
from: "#isolated_archivist",
},
{
protocol: "fuchsia.logger.LogSink",
path: "/svc/fuchsia.logger.LogSink.isolated",
from: "#isolated_archivist",
},
],
}
9 changes: 9 additions & 0 deletions config/fuchsia/test/web_instance_host.shard.test-cml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
use: [
{
protocol: [
"fuchsia.sys.Environment",
],
},
],
}

0 comments on commit a710f6b

Please sign in to comment.