Merge "Move ShadowBluetoothUtils.java to tests/robotests/testutils." into main

This commit is contained in:
Yiyi Shen
2023-09-22 08:49:25 +00:00
committed by Android (Google) Code Review

View File

@@ -25,6 +25,7 @@ import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements; import org.robolectric.annotation.Implements;
import org.robolectric.annotation.Resetter; import org.robolectric.annotation.Resetter;
/** Robolectric shadow for the bluetooth utils. */
@Implements(Utils.class) @Implements(Utils.class)
public class ShadowBluetoothUtils { public class ShadowBluetoothUtils {
@@ -35,6 +36,7 @@ public class ShadowBluetoothUtils {
return sLocalBluetoothManager; return sLocalBluetoothManager;
} }
/** Resets the local bluetooth manager to null. */
@Resetter @Resetter
public static void reset() { public static void reset() {
sLocalBluetoothManager = null; sLocalBluetoothManager = null;