Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62f5add7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Direct people away from Test{,able}Looper" into main

parents 94c32eaf c4273e4c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -42,6 +42,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
 * and provide an easy annotation for use with tests.
 *
 * @see TestableLooperTest TestableLooperTest for examples.
 *
 * @deprecated Use {@link android.os.TestLooperManager} or {@link
 *     org.robolectric.shadows.ShadowLooper} instead.
 *     This class is not actively maintained.
 *     Both of the recommended alternatives allow fine control of execution.
 *     The Robolectric class also allows advancing time.
 */
public class TestableLooper {

+9 −3
Original line number Diff line number Diff line
@@ -33,9 +33,15 @@ import java.lang.reflect.Method;
import java.util.concurrent.Executor;

/**
 * Creates a looper whose message queue can be manipulated
 * This allows testing code that uses a looper to dispatch messages in a deterministic manner
 * Creating a TestLooper will also install it as the looper for the current thread
 * Creates a looper whose message queue can be manipulated This allows testing code that uses a
 * looper to dispatch messages in a deterministic manner Creating a TestLooper will also install it
 * as the looper for the current thread
 *
 * @deprecated Use {@link android.os.TestLooperManager} or {@link
 *     org.robolectric.shadows.ShadowLooper} instead.
 *     This class is not actively maintained.
 *     Both of the recommended alternatives allow fine control of execution.
 *     The Robolectric class also allows advancing time.
 */
public class TestLooper {
    protected final Looper mLooper;