summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_utils_unittest.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-30 20:50:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-30 20:50:20 +0000
commit0ae8e03cc2d310ba0ba19b878ea448f17a577cdb (patch)
treee52a04144fd4945e3c90aadaeb11f4892f52baa2 /xfa/fxfa/parser/xfa_utils_unittest.cpp
parent9a2267d2531f4e75a6bcafb48abacfefe8a4a555 (diff)
downloadpdfium-0ae8e03cc2d310ba0ba19b878ea448f17a577cdb.tar.xz
Create CXFA_Node::NameToAttributeEnum
This CL removes XFA_GetAttributeEnumByName and moves the functionality into CXFA_Node::NameToAttriuteEnum. Change-Id: Id1484103c62bf7728d5406c22fb9d83fc0e032e1 Reviewed-on: https://pdfium-review.googlesource.com/19791 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils_unittest.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_utils_unittest.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/xfa/fxfa/parser/xfa_utils_unittest.cpp b/xfa/fxfa/parser/xfa_utils_unittest.cpp
index b27cdaa36e..c9f662eb8d 100644
--- a/xfa/fxfa/parser/xfa_utils_unittest.cpp
+++ b/xfa/fxfa/parser/xfa_utils_unittest.cpp
@@ -22,14 +22,3 @@ TEST(XfaUtilsImpTest, XFA_MapRotation) {
XFA_MapRotation(TestCases[i].input));
}
}
-
-TEST(XFAUtilsTest, GetAttributeEnumByName) {
- EXPECT_EQ(nullptr, XFA_GetAttributeEnumByName(L""));
- EXPECT_EQ(nullptr, XFA_GetAttributeEnumByName(L"nonesuch"));
- EXPECT_EQ(XFA_ATTRIBUTEENUM_Asterisk,
- XFA_GetAttributeEnumByName(L"*")->eName);
- EXPECT_EQ(XFA_ATTRIBUTEENUM_Visible,
- XFA_GetAttributeEnumByName(L"visible")->eName);
- EXPECT_EQ(XFA_ATTRIBUTEENUM_Lowered,
- XFA_GetAttributeEnumByName(L"lowered")->eName);
-}