summaryrefslogtreecommitdiff
path: root/android/sdk_version_test.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2023-03-02 23:36:39 +0000
committer Spandan Das <spandandas@google.com> 2023-03-20 16:40:08 +0000
commit7ee04614cd3f803d090391fc2f79e7791738faf9 (patch)
tree2339955bfbd0de9ade97386f18e0998121deb1d6 /android/sdk_version_test.go
parent895bc9463b89140aad64245afd642a6cd12a336c (diff)
Create two sentinel api levels
InvalidApiLevel: This will be used for error handling if a user provided api level is not recognized PrivateApiLevel: This will be used to differentiate the api level of sdk_version:"" from sdk_version:"current" or sdk_version:"<active_codename>" (all used to be FutureApiLevel previously). This was not necessary previously since the type of min_sdk_version was SdkSpec(kind+level). Since it had access to kind, it could check that it was not SdkSpecPrivate Test: m nothing Change-Id: I628b443c34bf2ec258d947dfec09f38b126bc6bb
Diffstat (limited to 'android/sdk_version_test.go')
-rw-r--r--android/sdk_version_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/sdk_version_test.go b/android/sdk_version_test.go
index ec81782f0..ea99c4d62 100644
--- a/android/sdk_version_test.go
+++ b/android/sdk_version_test.go
@@ -37,11 +37,11 @@ func TestSdkSpecFrom(t *testing.T) {
},
{
input: "_",
- expected: "invalid_(no version)",
+ expected: "invalid__",
},
{
input: "_31",
- expected: "invalid_(no version)",
+ expected: "invalid__31",
},
{
input: "system_R",