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

Commit ce96baa7 authored by Hall Liu's avatar Hall Liu Committed by Gerrit Code Review
Browse files

Merge "Deflake BluetoothRouteManager tests"

parents 581b1cb8 4185eae6
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -782,6 +782,7 @@ public class BluetoothRouteManager extends StateMachine {

    @VisibleForTesting
    public void setInitialStateForTesting(String stateName, BluetoothDevice device) {
        sendMessage(RUN_RUNNABLE, (Runnable) () -> {
            switch (stateName) {
                case AUDIO_OFF_STATE_NAME:
                    transitionTo(mAudioOffState);
@@ -795,5 +796,7 @@ public class BluetoothRouteManager extends StateMachine {
                            "setInitialStateForTesting"));
                    break;
            }
            Log.i(LOG_TAG, "transition for testing done: %s", stateName);
        });
    }
}