am 820317f7
: Make inner classes visible for testing.
* commit '820317f7aae3f5efd2354e2804ad4bd19f067677': Make inner classes visible for testing.
This commit is contained in:
commit
d65d8e71d4
1 changed files with 7 additions and 1 deletions
|
@ -85,11 +85,13 @@ public class ExecutorUtils {
|
|||
}
|
||||
}
|
||||
|
||||
@UsedForTesting
|
||||
public static Runnable chain(final Runnable... runnables) {
|
||||
return new RunnableChain(runnables);
|
||||
}
|
||||
|
||||
private static class RunnableChain implements Runnable {
|
||||
@UsedForTesting
|
||||
public static class RunnableChain implements Runnable {
|
||||
private final Runnable[] mRunnables;
|
||||
|
||||
private RunnableChain(final Runnable... runnables) {
|
||||
|
@ -99,6 +101,10 @@ public class ExecutorUtils {
|
|||
mRunnables = runnables;
|
||||
}
|
||||
|
||||
public Runnable[] getRunnables() {
|
||||
return mRunnables;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
for (Runnable runnable : mRunnables) {
|
||||
|
|
Loading…
Reference in a new issue