diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-04-06 16:09:43 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-04-06 16:24:02 -0700 |
commit | 803c7c807969bea1f1c50f348832f5b60ad05d8e (patch) | |
tree | 03237f2437312596e744d382aac3bf800c92c59d /tools/aapt2/java/AnnotationProcessor_test.cpp | |
parent | 50e439df28f1ceb76c229543f93f0b3f6ea05793 (diff) |
AAPT2: Enable windows build and make sure it builds
Mingw32 4.8 is kind of picky with macros and some complicated template
stuff. Luckily there was another way to represent the
SFINAE code that works on all platforms. Yay!
Change-Id: Idc2e38f47bfdc57b394550bfa0f53cc0b825df25
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); |