diff options
author | Xiangyu/Malcolm Chen <refuhoo@google.com> | 2020-06-13 08:09:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-06-13 08:09:41 +0000 |
commit | cd87321da2dd4a3cacee1e9a096a7e9808da7fb7 (patch) | |
tree | 8daddf738d3d5530c5478a08620dd3318e310353 /tests/telephonytests | |
parent | 2353e47be2cb522b05d675eb549e081dc44f5b6a (diff) | |
parent | 847f5bff7b09f95c7e40ef88c0e36f227ba6cc3f (diff) | |
download | telephony-cd87321da2dd4a3cacee1e9a096a7e9808da7fb7.tar.gz |
Merge "Remove redundant logging and message sending when Radio is null" into rvc-dev
Diffstat (limited to 'tests/telephonytests')
-rw-r--r-- | tests/telephonytests/src/com/android/internal/telephony/RILTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/telephonytests/src/com/android/internal/telephony/RILTest.java b/tests/telephonytests/src/com/android/internal/telephony/RILTest.java index 8dcff0fa0e..792e525b22 100644 --- a/tests/telephonytests/src/com/android/internal/telephony/RILTest.java +++ b/tests/telephonytests/src/com/android/internal/telephony/RILTest.java @@ -2491,6 +2491,19 @@ public class RILTest extends TelephonyTest { } @Test + public void testAreUiccApplicationsEnabled_nullRadioProxy() throws Exception { + // Not supported on Radio 1.0. + doReturn(null).when(mRILUnderTest).getRadioProxy(any()); + Message message = obtainMessage(); + mRILUnderTest.areUiccApplicationsEnabled(message); + processAllMessages(); + verify(mRadioProxy, never()).areUiccApplicationsEnabled(mSerialNumberCaptor.capture()); + // Sending message is handled by getRadioProxy when proxy is null. + // areUiccApplicationsEnabled shouldn't explicitly send another callback. + assertEquals(null, message.obj); + } + + @Test public void testSetGetCompatVersion() throws Exception { final int testRequest = RIL_REQUEST_GET_UICC_APPLICATIONS_ENABLEMENT; |