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

Commit f223e107 authored by Eric Schwarzenbach's avatar Eric Schwarzenbach
Browse files

Add getCellBandwidth unit test

Bug: 73751023
Test: runtest
Change-Id: Ifeadea19ad3dc7066bbd39894a792d662ca9ec70
parent f675639d
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.util.Pair;
import junit.framework.TestCase;

import java.util.ArrayList;
import java.util.Arrays;

public class ServiceStateTest extends TestCase {

@@ -165,6 +166,17 @@ public class ServiceStateTest extends TestCase {
            }
        }
    }
    @SmallTest
    public void testGetCellBandwidths() {
        ServiceState ss = new ServiceState();

        ss.setCellBandwidths(null);
        assertTrue(Arrays.equals(ss.getCellBandwidths(), new int[0]));

        int[] cellBandwidths = new int[]{5000, 10000};
        ss.setCellBandwidths(cellBandwidths);
        assertTrue(Arrays.equals(ss.getCellBandwidths(), cellBandwidths));
    }

    @SmallTest
    public void testOperatorName() {