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

Commit bab5dcdd authored by Hui Wang's avatar Hui Wang Committed by Gerrit Code Review
Browse files

Merge "isRcsVolteSingleRegistrationCapable need check provisioning status."

parents dc929cf3 97f4e579
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -144,6 +144,19 @@ public final class RcsConfigTest {
        assertTrue(config.equals(config2));
    }

    @Test
    @SmallTest
    public void testIsRcsVolteSingleRegistrationSupported() {
        String[] vals = new String[]{"0", "1", "false", "true"};
        boolean[] expectedRes = new boolean[]{false, true, false, true};
        for (int i = 0; i < vals.length; i++) {
            String xml = "<RCSConfig>\n" + "\t<rcsVolteSingleRegistration>" + vals[i]
                    + "</rcsVolteSingleRegistration>\n" + "</RCSConfig>\n";
            RcsConfig config = new RcsConfig(xml.getBytes());
            assertEquals(config.isRcsVolteSingleRegistrationSupported(), expectedRes[i]);
        }
    }

    private void createFakeSimInfo() {
        ContentValues contentValues = new ContentValues();
        final String fakeIccId = "fakeleIccId";