aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Zivkovic <zivkovic@google.com>2015-03-12 17:06:48 -0700
committerDan Zivkovic <zivkovic@google.com>2015-03-12 17:10:38 -0700
commiteaa710d4aaac75ff2b7e29608d004fe7662b392e (patch)
tree6944df334be797522526b5e3f83484933e0b034d /tests
parent26fb83c481034cb9dbc9504e60fde40c6b213e97 (diff)
downloadlatinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.tar.gz
latinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.tar.xz
latinime-eaa710d4aaac75ff2b7e29608d004fe7662b392e.zip
Separate executor for the Spelling decoder.
Bug 19710676. Change-Id: I6e66eddd507c11e424105869833fe6841b90275d
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/inputmethod/latin/utils/ExecutorUtilsTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/utils/ExecutorUtilsTests.java b/tests/src/com/android/inputmethod/latin/utils/ExecutorUtilsTests.java
index d722151cf..86923059b 100644
--- a/tests/src/com/android/inputmethod/latin/utils/ExecutorUtilsTests.java
+++ b/tests/src/com/android/inputmethod/latin/utils/ExecutorUtilsTests.java
@@ -35,7 +35,8 @@ public class ExecutorUtilsTests extends AndroidTestCase {
private static final int DELAY_FOR_WAITING_TASKS_MILLISECONDS = 500;
public void testExecute() {
- final ExecutorService executor = ExecutorUtils.getBackgroundExecutor();
+ final ExecutorService executor =
+ ExecutorUtils.getBackgroundExecutor(ExecutorUtils.KEYBOARD);
final AtomicInteger v = new AtomicInteger(0);
for (int i = 0; i < NUM_OF_TASKS; ++i) {
executor.execute(new Runnable() {