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

Commit 42f8560a authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "Update PhysicalChannelConfig tests" am: e99fde03 am: f8cbf271

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2032426

Change-Id: I4ffa3201b748e4c9311be03f2f8184c26a102a9f
parents d7170265 f8cbf271
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