mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am c0d75439: Fix unit tests by adding @UsedFortesting.
* commit 'c0d754397e49bb39da8313e015731e43adf02586': Fix unit tests by adding @UsedFortesting.
This commit is contained in:
commit
7767633bf7
@ -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…
x
Reference in New Issue
Block a user