diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-07-08 15:00:32 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-07-13 17:45:28 -0700 |
commit | d0f116b619feede0cfdb647157ce5ab4d50a1c46 (patch) | |
tree | 5b2a8663602ba2b267890ff85d3cf5618ac922b5 /tools/aapt2/xml/XmlActionExecutor_test.cpp | |
parent | aaac91f4a00a9968ef107ea143e6f2f669f762f1 (diff) |
AAPT2: Remove usage of u16string
For legacy reasons, we kept around the use of UTF-16 internally
in AAPT2. We don't need this and this CL removes all instances of
std::u16string and StringPiece16. The only places still needed
are when interacting with the ResTable APIs that only operate in
UTF16.
Change-Id: I492475b84bb9014fa13bf992cff447ee7a5fe588
Diffstat (limited to 'tools/aapt2/xml/XmlActionExecutor_test.cpp')
-rw-r--r-- | tools/aapt2/xml/XmlActionExecutor_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/aapt2/xml/XmlActionExecutor_test.cpp b/tools/aapt2/xml/XmlActionExecutor_test.cpp index ebf287a251f2..106e85601f6e 100644 --- a/tools/aapt2/xml/XmlActionExecutor_test.cpp +++ b/tools/aapt2/xml/XmlActionExecutor_test.cpp @@ -22,8 +22,8 @@ namespace xml { TEST(XmlActionExecutorTest, BuildsAccessibleNestedPattern) { XmlActionExecutor executor; - XmlNodeAction& manifestAction = executor[u"manifest"]; - XmlNodeAction& applicationAction = manifestAction[u"application"]; + XmlNodeAction& manifestAction = executor["manifest"]; + XmlNodeAction& applicationAction = manifestAction["application"]; Element* manifestEl = nullptr; manifestAction.action([&](Element* manifest) -> bool { @@ -42,15 +42,15 @@ TEST(XmlActionExecutorTest, BuildsAccessibleNestedPattern) { StdErrDiagnostics diag; ASSERT_TRUE(executor.execute(XmlActionExecutorPolicy::None, &diag, doc.get())); ASSERT_NE(nullptr, manifestEl); - EXPECT_EQ(std::u16string(u"manifest"), manifestEl->name); + EXPECT_EQ(std::string("manifest"), manifestEl->name); ASSERT_NE(nullptr, applicationEl); - EXPECT_EQ(std::u16string(u"application"), applicationEl->name); + EXPECT_EQ(std::string("application"), applicationEl->name); } TEST(XmlActionExecutorTest, FailsWhenUndefinedHierarchyExists) { XmlActionExecutor executor; - executor[u"manifest"][u"application"]; + executor["manifest"]["application"]; std::unique_ptr<XmlResource> doc = test::buildXmlDom( "<manifest><application /><activity /></manifest>"); |