ProfileServiceTest: Remove ASYNC_CALL_TIMEOUT
When waiting for profiles to start, use PROFILE_START_MILLIS.
Test: runtest -j20 bluetooth -c com.android.bluetooth.btservice.ProfileServiceTest
Change-Id: I71af45592ce70a034e65d5b022ae370ca21b237f
diff --git a/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java b/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java
index 9e7997f..4530ef2 100644
--- a/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java
+++ b/tests/unit/src/com/android/bluetooth/btservice/ProfileServiceTest.java
@@ -44,7 +44,6 @@
@MediumTest
@RunWith(AndroidJUnit4.class)
public class ProfileServiceTest {
- private static final int ASYNC_CALL_TIMEOUT_MILLIS = 250;
private static final int PROFILE_START_MILLIS = 1250;
@Rule public final ServiceTestRule mServiceTestRule = new ServiceTestRule();
@@ -132,10 +131,10 @@
}
for (Class profile : mProfiles) {
verify(mMockAdapterService,
- timeout(ASYNC_CALL_TIMEOUT_MILLIS)).onProfileServiceStateChanged(
+ timeout(PROFILE_START_MILLIS)).onProfileServiceStateChanged(
eq(profile.getName()), eq(BluetoothAdapter.STATE_ON));
verify(mMockAdapterService,
- timeout(ASYNC_CALL_TIMEOUT_MILLIS)).onProfileServiceStateChanged(
+ timeout(PROFILE_START_MILLIS)).onProfileServiceStateChanged(
eq(profile.getName()), eq(BluetoothAdapter.STATE_OFF));
}
}