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

Commit e99fde03 authored by Sarah Chin's avatar Sarah Chin Committed by Gerrit Code Review
Browse files

Merge "Update PhysicalChannelConfig tests"

parents 94525db2 c82e09ce
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -17,8 +17,6 @@ package com.android.internal.telephony;

import static com.google.common.truth.Truth.assertThat;

import static org.junit.Assert.fail;

import android.os.Parcel;
import android.telephony.AccessNetworkConstants;
import android.telephony.PhysicalChannelConfig;
@@ -124,12 +122,9 @@ public class PhysicalChannelConfigTest {

    @Test
    public void testFrequencyRangeWithoutBand() {
        try {
            setUpPhysicalChannelConfig(NETWORK_TYPE_UMTS, 0, CHANNEL_NUMBER, CHANNEL_NUMBER,
                    ServiceState.FREQUENCY_RANGE_UNKNOWN);
            fail("Frequency range: 0 is invalid.");
        } catch (IllegalArgumentException e) {
        }
        setUpPhysicalChannelConfig(NETWORK_TYPE_UMTS, 0, CHANNEL_NUMBER, CHANNEL_NUMBER, -1);
        assertThat(mPhysicalChannelConfig.getFrequencyRange())
                .isEqualTo(ServiceState.FREQUENCY_RANGE_UNKNOWN);
    }

    @Test