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

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

Change-Id: I3671d5cf5ea9ba907eef8ce1e62650bec4d2eb79
parents 2288cfeb a9028de4
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