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

Commit 1513b5bc authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Fix breaking telecom tests. The Telecom tests had an inappropriate dependency...

Fix breaking telecom tests. The Telecom tests had an inappropriate dependency on content provider. Removing this part of the test ensures that changes to the content provider no longer breaks Telecom tests. The AsyncBlockCheckFilterTest performs more valuable validations and it is not impacted. am: a9028de4 am: 70800232
am: c1cb3149

Change-Id: I0d79826c678e5b11f3432b9b49f2d28352ffca7d
parents 0992ba23 c1cb3149
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -871,20 +871,6 @@ public class TelecomSystemTest extends TelecomTestCase {
        //Wait for/Verify call blocking happened asynchronously
        incomingCallAddedLatch.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS);

        // Do the blocked number check only for non-self-managed calls
        PhoneAccount pa = mTelecomSystem.getPhoneAccountRegistrar()
                .getPhoneAccount(phoneAccountHandle, phoneAccountHandle.getUserHandle());
        if (!pa.hasCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED)) {
            IContentProvider blockedNumberProvider =
                    mSpyContext.getContentResolver().acquireProvider(
                            BlockedNumberContract.AUTHORITY);
            verify(blockedNumberProvider, timeout(TEST_TIMEOUT)).call(
                    anyString(),
                    eq(BlockedNumberContract.SystemContract.METHOD_SHOULD_SYSTEM_BLOCK_NUMBER),
                    eq(number),
                    isNotNull(Bundle.class));
        }

        // For the case of incoming calls, Telecom connecting the InCall services and adding the
        // Call is triggered by the async completion of the CallerInfoAsyncQuery. Once the Call
        // is added, future interactions as triggered by the ConnectionService, through the various