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

Commit 733e2b9a authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "ProfileServiceTest: Remove ASYNC_CALL_TIMEOUT" am: 465d82dc am: f5aa2cd1

am: 5fb42885

Change-Id: I43529f2917feb0801e0807b3d368a1b4c72ed41f
parents 4c87dcc2 5fb42885
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import java.util.concurrent.TimeoutException;
@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 @@ public class ProfileServiceTest {
        }
        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));
        }
    }