aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-07-16 14:03:09 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-07-16 16:03:36 -0700
commit06fc4498e402ca5cd03f43294859f5fa022b58b6 (patch)
tree970cacab456c3f73ac9ab05eae3f04597f7c6a44 /tests/src/org
parent6714bfe38ba72d43102e088099e4465ae064a439 (diff)
downloadvendor_cmsdk-06fc4498e402ca5cd03f43294859f5fa022b58b6.zip
vendor_cmsdk-06fc4498e402ca5cd03f43294859f5fa022b58b6.tar.gz
vendor_cmsdk-06fc4498e402ca5cd03f43294859f5fa022b58b6.tar.bz2
cmsdk: Return UNKNOWN for impossible sdk ints.
Change-Id: I77a44abba0db223b031d6714c4fd8beb03a43cdc
Diffstat (limited to 'tests/src/org')
-rw-r--r--tests/src/org/cyanogenmod/tests/versioning/unit/BuildTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/org/cyanogenmod/tests/versioning/unit/BuildTest.java b/tests/src/org/cyanogenmod/tests/versioning/unit/BuildTest.java
index fea1f27..2b83827 100644
--- a/tests/src/org/cyanogenmod/tests/versioning/unit/BuildTest.java
+++ b/tests/src/org/cyanogenmod/tests/versioning/unit/BuildTest.java
@@ -56,4 +56,11 @@ public class BuildTest extends AndroidTestCase {
}
assertEquals(0, i);
}
+
+ @SmallTest
+ public void testSdkLevelRetrieveNameImpossible() {
+ String name = Build.getNameForSDKInt(Integer.MAX_VALUE);
+ assertNotNull(name);
+ assertEquals(Build.UNKNOWN, name);
+ }
}