Test BluetoothFinderManager for SDK at least V
Bug: 327721277 Test: atest NearbyUnitTests Change-Id: I0ea89eeafd49783e3f8501c1c930733358f67cdf
This commit is contained in:
parent
54dc308722
commit
5d76735249
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ package com.android.server.nearby.managers;
|
|||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
import static org.mockito.Mockito.any;
|
||||
import static org.mockito.Mockito.anyBoolean;
|
||||
import static org.mockito.Mockito.anyInt;
|
||||
|
|
@ -33,6 +34,8 @@ import android.os.IBinder.DeathRecipient;
|
|||
import android.os.RemoteException;
|
||||
import android.os.ServiceSpecificException;
|
||||
|
||||
import com.android.modules.utils.build.SdkLevel;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.mockito.ArgumentCaptor;
|
||||
|
|
@ -68,6 +71,8 @@ public class BluetoothFinderManagerTest {
|
|||
|
||||
@Before
|
||||
public void setup() {
|
||||
// Replace with minSdkVersion when Build.VERSION_CODES.VANILLA_ICE_CREAM can be used.
|
||||
assumeTrue(SdkLevel.isAtLeastV());
|
||||
MockitoAnnotations.initMocks(this);
|
||||
mBluetoothFinderManager = new BluetoothFinderManagerSpy();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue