Make inner classes visible for testing.
We need this to assert the correct behavior in the facilitator. Bug 19695605. Change-Id: I3923d00791c99208bc72f7c4210ae1ea0a34bd0emain
parent
4621365b21
commit
820317f7aa
|
@ -85,11 +85,13 @@ public class ExecutorUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@UsedForTesting
|
||||||
public static Runnable chain(final Runnable... runnables) {
|
public static Runnable chain(final Runnable... runnables) {
|
||||||
return new RunnableChain(runnables);
|
return new RunnableChain(runnables);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class RunnableChain implements Runnable {
|
@UsedForTesting
|
||||||
|
public static class RunnableChain implements Runnable {
|
||||||
private final Runnable[] mRunnables;
|
private final Runnable[] mRunnables;
|
||||||
|
|
||||||
private RunnableChain(final Runnable... runnables) {
|
private RunnableChain(final Runnable... runnables) {
|
||||||
|
@ -99,6 +101,10 @@ public class ExecutorUtils {
|
||||||
mRunnables = runnables;
|
mRunnables = runnables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Runnable[] getRunnables() {
|
||||||
|
return mRunnables;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (Runnable runnable : mRunnables) {
|
for (Runnable runnable : mRunnables) {
|
||||||
|
|
Loading…
Reference in New Issue