diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-04-07 17:03:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-07 17:03:55 +0000 |
commit | f22df48067ec8f0a2c609c40ba842a0e5a0812b0 (patch) | |
tree | 6b96e72963e8167058df90d7ce6eddc5e4b798f8 /tools/aapt2/java/AnnotationProcessor_test.cpp | |
parent | c399df7a683d831f55b5afdb6945ef86bfe0e181 (diff) | |
parent | 803c7c807969bea1f1c50f348832f5b60ad05d8e (diff) |
Merge "AAPT2: Enable windows build and make sure it builds" into nyc-dev
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor_test.cpp')
-rw-r--r-- | tools/aapt2/java/AnnotationProcessor_test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/aapt2/java/AnnotationProcessor_test.cpp b/tools/aapt2/java/AnnotationProcessor_test.cpp index da96b84fd4ea..d3860a5825b2 100644 --- a/tools/aapt2/java/AnnotationProcessor_test.cpp +++ b/tools/aapt2/java/AnnotationProcessor_test.cpp @@ -49,16 +49,18 @@ struct AnnotationProcessorTest : public ::testing::Test { }; TEST_F(AnnotationProcessorTest, EmitsDeprecated) { - ASSERT_TRUE(parse(R"EOF( + const char* xmlInput = R"EOF( <resources> - <declare-styleable name="foo"> + <declare-styleable name="foo"> <!-- Some comment, and it should contain a marker word, something that marks this resource as nor needed. {@deprecated That's the marker! } --> <attr name="autoText" format="boolean" /> </declare-styleable> - </resources>)EOF")); + </resources>)EOF"; + + ASSERT_TRUE(parse(xmlInput)); Attribute* attr = test::getValue<Attribute>(&mTable, u"@attr/autoText"); ASSERT_NE(nullptr, attr); |