Fix unit tests by adding @UsedFortesting.
Change-Id: I8f66632a32b9e9ddc1b771e8ee74492c7baf9338main
parent
4426cbc59e
commit
c0d754397e
|
@ -16,6 +16,8 @@
|
||||||
|
|
||||||
package com.android.inputmethod.latin.utils;
|
package com.android.inputmethod.latin.utils;
|
||||||
|
|
||||||
|
import com.android.inputmethod.annotations.UsedForTesting;
|
||||||
|
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
import java.util.concurrent.ArrayBlockingQueue;
|
import java.util.concurrent.ArrayBlockingQueue;
|
||||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||||
|
@ -74,6 +76,7 @@ public class PrioritizedSerialExecutor {
|
||||||
* Enqueues the given task into the prioritized task queue.
|
* Enqueues the given task into the prioritized task queue.
|
||||||
* @param r the enqueued task
|
* @param r the enqueued task
|
||||||
*/
|
*/
|
||||||
|
@UsedForTesting
|
||||||
public void executePrioritized(final Runnable r) {
|
public void executePrioritized(final Runnable r) {
|
||||||
synchronized(mLock) {
|
synchronized(mLock) {
|
||||||
if (!mIsShutdown) {
|
if (!mIsShutdown) {
|
||||||
|
|
Loading…
Reference in New Issue