Loading tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsCallTest.java +21 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.internal.telephony.imsphone; import static junit.framework.Assert.assertNotNull; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; Loading Loading @@ -64,6 +66,25 @@ public class ImsCallTest extends TelephonyTest { assertNotEquals(mTestImsCall.getNetworkType(), TelephonyManager.NETWORK_TYPE_LTE); } @Test @SmallTest public void testNullCallProfile() { ImsCall imsCall = new ImsCall(mContext, null /* imsCallProfile */); assertNotNull(imsCall); assertFalse(imsCall.wasVideoCall()); } @Test @SmallTest public void testNonNulllVideoProfile() { ImsCallProfile profile = new ImsCallProfile(); profile.mCallType = ImsCallProfile.CALL_TYPE_VT_TX; ImsCall imsCall = new ImsCall(mContext, profile); assertNotNull(imsCall); assertTrue(imsCall.wasVideoCall()); } @Test @SmallTest public void testSetWifi() { Loading Loading
tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsCallTest.java +21 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.internal.telephony.imsphone; import static junit.framework.Assert.assertNotNull; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; Loading Loading @@ -64,6 +66,25 @@ public class ImsCallTest extends TelephonyTest { assertNotEquals(mTestImsCall.getNetworkType(), TelephonyManager.NETWORK_TYPE_LTE); } @Test @SmallTest public void testNullCallProfile() { ImsCall imsCall = new ImsCall(mContext, null /* imsCallProfile */); assertNotNull(imsCall); assertFalse(imsCall.wasVideoCall()); } @Test @SmallTest public void testNonNulllVideoProfile() { ImsCallProfile profile = new ImsCallProfile(); profile.mCallType = ImsCallProfile.CALL_TYPE_VT_TX; ImsCall imsCall = new ImsCall(mContext, profile); assertNotNull(imsCall); assertTrue(imsCall.wasVideoCall()); } @Test @SmallTest public void testSetWifi() { Loading