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

Commit c1cb3149 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

Change-Id: I659d4f96de163ae61a0cb8e48bd41929cd66be9e
parents 7cc9a8a0 70800232
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -864,20 +864,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