diff options
author | Adam Lesinski <adamlesinski@google.com> | 2017-05-26 17:33:38 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2017-05-26 17:38:34 -0700 |
commit | 4488f1c74a0f7df09f2b201f7caa228d729e8389 (patch) | |
tree | 84b28ff7c770f906f0a58cf280ec28ecc3a58f68 /tools/aapt2/ResourceParser_test.cpp | |
parent | 2354b568379fe31ba4e774f7a92d4c685a60a2ab (diff) |
AAPT2: Fix <add-resource> tag for overlays
Bug: 38355988
Test: make aapt2_tests
Change-Id: Iea8887f55f8ceb2c15bd963405fd132916173c0c
Diffstat (limited to 'tools/aapt2/ResourceParser_test.cpp')
-rw-r--r-- | tools/aapt2/ResourceParser_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/ResourceParser_test.cpp b/tools/aapt2/ResourceParser_test.cpp index faa660729237..e3abde6bef29 100644 --- a/tools/aapt2/ResourceParser_test.cpp +++ b/tools/aapt2/ResourceParser_test.cpp @@ -777,8 +777,7 @@ TEST_F(ResourceParserTest, ExternalTypesShouldOnlyBeReferences) { ASSERT_FALSE(TestParse(input)); } -TEST_F(ResourceParserTest, - AddResourcesElementShouldAddEntryWithUndefinedSymbol) { +TEST_F(ResourceParserTest, AddResourcesElementShouldAddEntryWithUndefinedSymbol) { std::string input = R"EOF(<add-resource name="bar" type="string" />)EOF"; ASSERT_TRUE(TestParse(input)); @@ -788,6 +787,7 @@ TEST_F(ResourceParserTest, const ResourceEntry* entry = result.value().entry; ASSERT_NE(nullptr, entry); EXPECT_EQ(SymbolState::kUndefined, entry->symbol_status.state); + EXPECT_TRUE(entry->symbol_status.allow_new); } TEST_F(ResourceParserTest, ParseItemElementWithFormat) { |