dump const decls with annotations
This reveals yet another bug: adding
@JavaPassthrough(annotation="@Deprecated") should be okay because it
won't bring behavioral changes. This will be fixed in a following
change.
Bug: 174327111
Test: aidl_unittests
Change-Id: I1cb081d6569eb9dec3323237069815519271916b
diff --git a/aidl_unittest.cpp b/aidl_unittest.cpp
index a073c6a..2a5ee16 100644
--- a/aidl_unittest.cpp
+++ b/aidl_unittest.cpp
@@ -1509,11 +1509,10 @@
EXPECT_EQ("", GetCapturedStderr());
string actual;
EXPECT_TRUE(io_delegate_.GetWrittenContents("dump/foo/bar/IFoo.aidl", &actual));
- // TODO(b/174327111) dump const with annotations
EXPECT_EQ(string(kPreamble).append(R"(package foo.bar;
interface IFoo {
@utf8InCpp String foo();
- const String bar = "bar";
+ const @utf8InCpp String bar = "bar";
}
)"),
actual);