Handle the case when a symbol is annotated with "# apex vndk"

This change fixes a bug that a symbol is omitted for apex (or vndk) when
it is annotated with "# vndk apex" (or "# apex vndk).

Bug: 123349183
Test: python3 test_gen_stub_libs.py

Change-Id: I344d6e70732bae8877cb16bbe881edb79fe90670
This commit is contained in:
Jiyong Park
2019-02-08 20:34:32 +09:00
parent f98087ffce
commit 1431765f8d
2 changed files with 17 additions and 6 deletions

View File

@@ -751,6 +751,8 @@ class IntegrationTest(unittest.TestCase):
wibble;
wizzes; # vndk
waggle; # apex
bubble; # apex vndk
duddle; # vndk apex
} VERSION_2;
VERSION_5 { # versioned=14
@@ -771,6 +773,8 @@ class IntegrationTest(unittest.TestCase):
void qux() {}
void wibble() {}
void waggle() {}
void bubble() {}
void duddle() {}
void wobble() {}
""")
self.assertEqual(expected_src, src_file.getvalue())
@@ -788,6 +792,8 @@ class IntegrationTest(unittest.TestCase):
global:
wibble;
waggle;
bubble;
duddle;
} VERSION_2;
""")
self.assertEqual(expected_version, version_file.getvalue())