Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Full implementation of text-input-test #37986

Merged
merged 7 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ group("tests") {

executable("text-input-test-bin") {
testonly = true

output_name = "text-input-test"

sources = [ "text-input-test.cc" ]

# This is needed for //third_party/googletest for linking zircon symbols.
libs = [ "$fuchsia_sdk_path/arch/$target_cpu/sysroot/lib/libzircon.so" ]

deps = [
"$fuchsia_sdk_root/fidl:fuchsia.feedback",
"$fuchsia_sdk_root/fidl:fuchsia.logger",
"$fuchsia_sdk_root/fidl:fuchsia.sys",
"$fuchsia_sdk_root/fidl:fuchsia.accessibility.semantics",
"$fuchsia_sdk_root/fidl:fuchsia.component",
"$fuchsia_sdk_root/fidl:fuchsia.intl",
"$fuchsia_sdk_root/fidl:fuchsia.kernel",
"$fuchsia_sdk_root/fidl:fuchsia.tracing.provider",
"$fuchsia_sdk_root/fidl:fuchsia.ui.app",
"$fuchsia_sdk_root/fidl:fuchsia.ui.composition",
"$fuchsia_sdk_root/fidl:fuchsia.ui.input",
"$fuchsia_sdk_root/fidl:fuchsia.ui.pointerinjector",
"$fuchsia_sdk_root/fidl:fuchsia.ui.policy",
"$fuchsia_sdk_root/fidl:fuchsia.ui.scenic",
"$fuchsia_sdk_root/fidl:fuchsia.ui.test.input",
"$fuchsia_sdk_root/fidl:fuchsia.ui.test.scene",
Expand All @@ -40,9 +40,12 @@ executable("text-input-test-bin") {
"$fuchsia_sdk_root/pkg:scenic_cpp",
"$fuchsia_sdk_root/pkg:sys_component_cpp_testing",
"$fuchsia_sdk_root/pkg:zx",
"text-input-view:package",
"//build/fuchsia/fidl:fuchsia.ui.gfx",
"//flutter/fml",
"//flutter/shell/platform/fuchsia/flutter/tests/integration/utils:check_view",
"//flutter/shell/platform/fuchsia/flutter/tests/integration/utils:color",
"//flutter/shell/platform/fuchsia/flutter/tests/integration/utils:portable_ui_test",
"//flutter/shell/platform/fuchsia/flutter/tests/integration/utils:screenshot",
"//third_party/googletest:gtest",
"//third_party/googletest:gtest_main",
Expand All @@ -52,7 +55,6 @@ executable("text-input-test-bin") {
fuchsia_test_archive("text-input-test") {
deps = [
":text-input-test-bin",
"text-input-view:package",

# "OOT" copies of the runners used by tests, to avoid conflicting with the
# runners in the base fuchsia image.
Expand All @@ -61,6 +63,5 @@ fuchsia_test_archive("text-input-test") {
]

binary = "$target_name"

cml_file = rebase_path("meta/$target_name.cml")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"gtest_runner.shard.cml",
"sys/component/realm_builder_absolute.shard.cml",

"syslog/client.shard.cml",
"vulkan/client.shard.cml",

// This test needs both the vulkan facet and the hermetic-tier-2 facet,
// so we are forced to make it a system test.
"sys/testing/system-test.shard.cml",
Expand All @@ -17,6 +14,13 @@
program: {
binary: "bin/app",
},
use: [
{
protocol: [
"fuchsia.ui.test.input.KeyboardInputListener",
]
}
],
offer: [
{
protocol: [
Expand All @@ -26,21 +30,43 @@
"fuchsia.scheduler.ProfileProvider",
"fuchsia.sysmem.Allocator",
"fuchsia.tracing.provider.Registry",
"fuchsia.ui.input.ImeService",
"fuchsia.vulkan.loader.Loader",
"fuchsia.ui.scenic.Scenic",
"fuchsia.ui.test.input.KeyboardInputListener",
"fuchsia.ui.input3.Keyboard",
"fuchsia.intl.PropertyProvider",
"fuchsia.posix.socket.Provider",
"fuchsia.ui.pointerinjector.Registry",
"fuchsia.fonts.Provider",
"fuchsia.feedback.CrashReportingProductRegister",
"fuchsia.settings.Keyboard",
"fuchsia.accessibility.semantics.SemanticsManager",
],
from: "parent",
to: "#realm_builder",
},
{
directory: "pkg",
subdir: "config",
as: "config-data",
from: "framework",
to: "#realm_builder",
},
],
// TODO(https://fxbug.dev/114584): Figure out how to bring these in as deps (if possible oot).
facets: {
"fuchsia.test": {
"deprecated-allowed-packages": [
"cursor",
"flatland-scene-manager-test-ui-stack",
"test-ui-stack",
"oot_flutter_aot_runner",
"oot_flutter_jit_runner",
"oot_flutter_jit_product_runner",
"oot_flutter_aot_product_runner",
"test_manager",
"text-input-view",
],
},
},
Expand Down
Loading