Skip to content

Commit

Permalink
Add the new hidden api restriction tokens to the lexer token test
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusFreke committed Feb 5, 2020
1 parent 15a98cb commit 71a79c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions smali/src/test/resources/LexerTest/MiscTest.smali
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ annotation
volatile
transient

whitelist
greylist
blacklist
greylist-max-o
greylist-max-p
greylist-max-q
core-platform-api

no-error
generic-error
no-such-class
Expand Down
8 changes: 8 additions & 0 deletions smali/src/test/resources/LexerTest/MiscTest.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ ACCESS_SPEC("annotation")
ACCESS_SPEC("volatile")
ACCESS_SPEC("transient")

HIDDENAPI_RESTRICTION("whitelist")
HIDDENAPI_RESTRICTION("greylist")
HIDDENAPI_RESTRICTION("blacklist")
HIDDENAPI_RESTRICTION("greylist-max-o")
HIDDENAPI_RESTRICTION("greylist-max-p")
HIDDENAPI_RESTRICTION("greylist-max-q")
HIDDENAPI_RESTRICTION("core-platform-api")

VERIFICATION_ERROR_TYPE("no-error")
VERIFICATION_ERROR_TYPE("generic-error")
VERIFICATION_ERROR_TYPE("no-such-class")
Expand Down

0 comments on commit 71a79c8

Please sign in to comment.