From 820317f7aae3f5efd2354e2804ad4bd19f067677 Mon Sep 17 00:00:00 2001 From: Dan Zivkovic Date: Wed, 11 Mar 2015 12:50:37 -0700 Subject: [PATCH] Make inner classes visible for testing. We need this to assert the correct behavior in the facilitator. Bug 19695605. Change-Id: I3923d00791c99208bc72f7c4210ae1ea0a34bd0e --- .../android/inputmethod/latin/utils/ExecutorUtils.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java b/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java index 91714686f..c30291b52 100644 --- a/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/ExecutorUtils.java @@ -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) {