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

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

Merge "Update PhysicalChannelConfig tests" am: e99fde03

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

Change-Id: I95db29000a3e67338ae4b30a24e827d966ae6df5
parents cac7b659 e99fde03
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