Loading tests/telephonytests/src/com/android/internal/telephony/ServiceStateTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading @@ -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() { Loading Loading
tests/telephonytests/src/com/android/internal/telephony/ServiceStateTest.java +12 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading @@ -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() { Loading