[nearby] Fix test failure
Test: -m Fix: 303338703 Ignore-AOSP-First: nearby not in aosp yet (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f6fdf4cf7bc9cd9d50e91d7895e11f684a49a5db) Merged-In: I7048917f5345f55364626901b533fee3d3856bf7 Change-Id: I7048917f5345f55364626901b533fee3d3856bf7
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.android.server.nearby.provider;
|
||||
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.atLeast;
|
||||
import static org.mockito.Mockito.atLeastOnce;
|
||||
import static org.mockito.Mockito.eq;
|
||||
import static org.mockito.Mockito.times;
|
||||
@@ -70,7 +70,7 @@ public class BleBroadcastProviderTest {
|
||||
|
||||
AdvertiseSettings settings = new AdvertiseSettings.Builder().build();
|
||||
mBleBroadcastProvider.onStartSuccess(settings);
|
||||
verify(mBroadcastListener, times(any())).onStatusChanged(eq(BroadcastCallback.STATUS_OK));
|
||||
verify(mBroadcastListener, atLeast(1)).onStatusChanged(eq(BroadcastCallback.STATUS_OK));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -82,7 +82,7 @@ public class BleBroadcastProviderTest {
|
||||
// advertising set can not be mocked, so we will allow nulls
|
||||
mBleBroadcastProvider.mAdvertisingSetCallback.onAdvertisingSetStarted(null, -30,
|
||||
AdvertisingSetCallback.ADVERTISE_SUCCESS);
|
||||
verify(mBroadcastListener, times(any())).onStatusChanged(eq(BroadcastCallback.STATUS_OK));
|
||||
verify(mBroadcastListener, atLeast(1)).onStatusChanged(eq(BroadcastCallback.STATUS_OK));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user