new CTS for SmsCbLocation
Bug: 135956699
Test: atest SmsCbLocation
Change-Id: I3f4c967d4f60471b1044fa54abf4dfcde2e6bd42
diff --git a/tests/tests/telephony/current/src/android/telephony/cts/SmsCbLocationTest.java b/tests/tests/telephony/current/src/android/telephony/cts/SmsCbLocationTest.java
new file mode 100644
index 0000000..69c851f
--- /dev/null
+++ b/tests/tests/telephony/current/src/android/telephony/cts/SmsCbLocationTest.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2019 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package android.telephony.cts;
+
+import static org.junit.Assert.assertEquals;
+
+import android.telephony.SmsCbLocation;
+
+import org.junit.Test;
+
+public class SmsCbLocationTest {
+ @Test
+ public void testSmsCbLocation() throws Throwable {
+ SmsCbLocation cbLocation = new SmsCbLocation("94040", 1234, 5678);
+ assertEquals("94040", cbLocation.getPlmn());
+ assertEquals(1234, cbLocation.getLac());
+ assertEquals(5678, cbLocation.getCid());
+ }
+}