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/JavaClassGenerator_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/JavaClassGenerator_test.cpp')
-rw-r--r-- | tools/aapt2/java/JavaClassGenerator_test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/aapt2/java/JavaClassGenerator_test.cpp b/tools/aapt2/java/JavaClassGenerator_test.cpp index 4f041b88efbc..370e78a7b9d2 100644 --- a/tools/aapt2/java/JavaClassGenerator_test.cpp +++ b/tools/aapt2/java/JavaClassGenerator_test.cpp @@ -239,13 +239,15 @@ TEST(JavaClassGeneratorTest, CommentsForSimpleResourcesArePresent) { ASSERT_TRUE(generator.generate(u"android", &out)); std::string actual = out.str(); - EXPECT_NE(std::string::npos, actual.find( - R"EOF(/** + const char* expectedText = +R"EOF(/** * This is a comment * @deprecated */ @Deprecated - public static final int foo=0x01010000;)EOF")); + public static final int foo=0x01010000;)EOF"; + + EXPECT_NE(std::string::npos, actual.find(expectedText)); } TEST(JavaClassGeneratorTest, CommentsForEnumAndFlagAttributesArePresent) { |