diff options
author | dan sinclair <dsinclair@chromium.org> | 2018-04-16 16:54:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-16 16:54:27 +0000 |
commit | 19ae9bf554fc1c01e352a846646c8005a4fe6b2b (patch) | |
tree | f17f74da5b0a95e93d6275d422f441f07169062a /core/fpdfdoc/cpdf_metadata_unittest.cpp | |
parent | d5624a47bcaad45f6fcb30ad03b6e474f5cee17e (diff) | |
download | pdfium-19ae9bf554fc1c01e352a846646c8005a4fe6b2b.tar.xz |
Use CFX_XML instead of CXML in CPDF_Metadata
This CL converts CPDF_Metadata to use the CFX_XML classes instead of
CXML classes. This also moves the CFX_XML classes from being XFA only to
being used everywhere.
Change-Id: Idb784f8aaa0bc843d8a3415ba5262ccf4949308a
Reviewed-on: https://pdfium-review.googlesource.com/30650
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_metadata_unittest.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_metadata_unittest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fpdfdoc/cpdf_metadata_unittest.cpp b/core/fpdfdoc/cpdf_metadata_unittest.cpp index 6e6d2f63dd..1a39948461 100644 --- a/core/fpdfdoc/cpdf_metadata_unittest.cpp +++ b/core/fpdfdoc/cpdf_metadata_unittest.cpp @@ -10,7 +10,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormEmailAtTopLevel) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>0</adhocwf:workflowType>\n" "<adhocwf:version>1.1</adhocwf:version>\n" @@ -27,7 +27,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormEmailAtTopLevel) { TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>1</adhocwf:workflowType>\n" "<adhocwf:version>1.1</adhocwf:version>\n" @@ -44,7 +44,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>2</adhocwf:workflowType>\n" "<adhocwf:version>1.1</adhocwf:version>\n" @@ -61,7 +61,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:state>2</adhocwf:state>\n" "<adhocwf:version>1.1</adhocwf:version>\n" @@ -77,7 +77,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<grandparent><parent>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>0</adhocwf:workflowType>\n" @@ -96,7 +96,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node></node>"; CPDF_Stream stream; @@ -109,7 +109,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/2.0/\">\n" "<adhocwf:workflowType>1</adhocwf:workflowType>\n" "<adhocwf:version>1.1</adhocwf:version>\n" @@ -125,7 +125,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { TEST(CPDF_MetadataTest, CheckSharedFormMultipleErrors) { const char* data = - "<?xml charset=utf-8?>\n" + "<?xml charset=\"utf-8\"?>\n" "<grandparent>" "<parent>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" |