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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user