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

Commit 3743f147 authored by Jack Yu's avatar Jack Yu
Browse files

Delete the test

Deleted the meaningless test

Test: atest FrameworksTelephonyTests
Fixes: 435752743
Flag: EXEMPT test fix
Change-Id: Ia189b3f4872ee05d7db1b0aac7c2b03ccc8c539b
parent 3f20db36
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -19,15 +19,11 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.ArgumentMatchers.isA;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

import android.os.Handler;
import android.telephony.PhoneNumberUtils;
import android.telephony.ServiceState;
import android.testing.AndroidTestingRunner;
@@ -153,16 +149,6 @@ public class CallManagerTest extends TelephonyTest {
        assertEquals(0, dialArgsCaptor.getValue().videoState);
    }

    @Test @SmallTest
    public void testRegisterEvent() throws Exception {
        verify(mPhone, times(1)).registerForCallWaiting(isA(Handler.class),
                eq(CallManager.EVENT_CALL_WAITING), isNull());
        verify(mPhone, times(1)).registerForPreciseCallStateChanged(isA(Handler.class),
                eq(CallManager.EVENT_PRECISE_CALL_STATE_CHANGED), isA(Object.class));
        verify(mPhone, times(1)).registerForRingbackTone(isA(Handler.class),
                eq(CallManager.EVENT_RINGBACK_TONE), isA(Object.class));
    }

    @Test @SmallTest
    public void testGetServiceState() throws Exception {
        // register for another phone