recipes: Use options protobufs from Fuchsia

Change-Id: I7c18248c9c7b73ceb69e2a17ea0be533243f3228
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/32140
Reviewed-by: Godofredo Contreras <godofredoc@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipes/recipes.py b/recipes/recipes.py
index 2abf832..db1720f 100644
--- a/recipes/recipes.py
+++ b/recipes/recipes.py
@@ -8,6 +8,7 @@
 
 import attr
 
+from PB.recipe_modules.fuchsia.recipe_testing import options as options_pb2
 from recipe_engine.recipe_api import Property
 
 PYTHON_VERSION_COMPATIBILITY = 'PY3'
@@ -109,22 +110,6 @@
     >
 """
 
-# TODO(fxbug.dev/88439): Convert this to a proto.
-@attr.s
-class Project(object):
-  name = attr.ib(type=str)
-  include_restricted = attr.ib(default=False)
-  include_unrestricted = attr.ib(default=False)
-  cq_config_name = attr.ib(default='')
-  excluded_buckets = attr.ib(default=attr.Factory(list))
-
-
-# TODO(fxbug.dev/88439): Convert this to a proto.
-@attr.s
-class RecipeTestingOptions(object):
-  projects = attr.ib()
-  use_buildbucket = attr.ib(default=False)
-
 
 def RunSteps(api, remote, unittest_only):
   checkout_path = api.path['start_dir'].join('recipes')
@@ -136,9 +121,8 @@
     api.recipe_testing.run_lint(checkout_path)
     api.recipe_testing.run_unit_tests(checkout_path)
   if not unittest_only:
-    opts = RecipeTestingOptions(
-        projects=[Project(name='flutter', include_unrestricted=True)],
-    )
+    flutter = options_pb2.Project(name='flutter', include_unrestricted=True)
+    opts = options_pb2.Options(projects=[flutter])
     api.recipe_testing.run_tests(checkout_path, SELFTEST_CL, opts)