Index: base/test/android/javatests/src/org/chromium/base/test/params/ParameterizedRunnerDelegate.java |
diff --git a/base/test/android/javatests/src/org/chromium/base/test/params/ParameterizedRunnerDelegate.java b/base/test/android/javatests/src/org/chromium/base/test/params/ParameterizedRunnerDelegate.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9b755feb6cdc8503077a64f3d6a1d3e8a162a6c3 |
--- /dev/null |
+++ b/base/test/android/javatests/src/org/chromium/base/test/params/ParameterizedRunnerDelegate.java |
@@ -0,0 +1,34 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.base.test.params; |
+ |
+import org.junit.runners.model.FrameworkMethod; |
+ |
+import java.util.List; |
+ |
+/** |
+ * This interface defines the methods that needs to be overriden for a Runner to |
+ * be used by ParameterizedRunner to generate individual runners for parameters. |
+ * |
+ * To create a ParameterizedRunnerDelegate, extends from any BlockJUnit4Runner |
+ * children class. You can copy all the implementation from |
+ * org.chromium.base.test.params.BaseJUnit4RunnerDelegate. |
+ */ |
+public interface ParameterizedRunnerDelegate { |
+ /** |
+ * Override to use DelegateCommon's implementation |
+ */ |
+ void collectInitializationErrors(List<Throwable> errors); |
+ |
+ /** |
+ * Override to use DelegateCommon's implementation |
+ */ |
+ List<FrameworkMethod> computeTestMethods(); |
+ |
+ /** |
+ * Override to use DelegateCommon's implementation |
+ */ |
+ Object createTest(); |
+} |