[fuchsia] Rewrite runner templates to use cleaner primitives.

Test runner and TUF installation rules are rewritten to make use of
the "fuchsia_run_script_with_packages" template, which adds package
handling to wrapper script generation and little else.

Adds a new target "chrome_fuchsia_runner", which deploys and executes
the standalone Chrome executable on a device.

Test runner script generation is relocated from testing/test.gni to
reduce clutter in that BUILD.gn file.

Bug: 1256870
Change-Id: I23058a8bc1b59b1be3dae79bb986d6efee72b680
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3206480
Commit-Queue: Kevin Marshall <[email protected]>
Reviewed-by: Chong Gu <[email protected]>
Reviewed-by: Greg Thompson <[email protected]>
Reviewed-by: Andrey Kosyakov <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: danakj <[email protected]>
Reviewed-by: Robert Kroeger <[email protected]>
Cr-Commit-Position: refs/heads/main@{#932266}
diff --git a/BUILD.gn b/BUILD.gn
index 806cc1f..116a30f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -910,13 +910,13 @@
     testonly = true
     binary = "//v8:d8"
     manifest = "//v8/gni/v8.cmx"
-    package_name_override = "d8"
+    package_name = "d8"
   }
 
-  fuchsia_package_runner("d8_fuchsia") {
+  fuchsia_package_installer("d8_fuchsia") {
     testonly = true
     package = ":d8_fuchsia_pkg"
-    package_name_override = "d8"
+    package_name = "d8"
   }
 }
 
@@ -1158,7 +1158,12 @@
     }
 
     if (is_fuchsia) {
-      data_deps += [ "//content/shell:content_shell_fuchsia" ]
+      data_deps += [
+        "//build/config/fuchsia:deployment_resources",
+        "//content/shell:content_shell_fuchsia",
+        "//content/shell:content_shell_pkg__archive-manifest",
+        "//content/shell:content_shell_pkg__archive-metadata",
+      ]
     }
 
     data = [