[tests] Convert tests to components

Change-Id: I7176f4605718ca4c737a04862e53d7531606f131
diff --git a/BUILD.gn b/BUILD.gn
index 2509e7e..c36cdf5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -4,6 +4,7 @@
 
 import("//build/fuzzing/fuzzer.gni")
 import("//build/package.gni")
+import("//build/test/test_package.gni")
 import("BUILD.generated.gni")
 import("BUILD.generated_tests.gni")
 
@@ -118,8 +119,7 @@
 # Unit tests #
 ##############
 if (is_fuchsia) {
-  package("boringssl_tests") {
-    testonly = true
+  unittest_package("boringssl_tests") {
     deps = [
       ":crypto_test",
       ":ssl_test",