diff options
author | Lei Zhang <thestig@chromium.org> | 2018-08-24 16:58:08 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-24 16:58:08 +0000 |
commit | ce26d7d03d6c80f7dd1db0f650cac6f93fd53fee (patch) | |
tree | 554837b71ad1f8f51639a69847fd5f13a394422f /core/fpdfdoc | |
parent | 284c5139836cab74457d78c5c964d1afb24da860 (diff) | |
download | pdfium-ce26d7d03d6c80f7dd1db0f650cac6f93fd53fee.tar.xz |
Change CPDF_MetadataTest test data to static const char data[].
Change-Id: Ifdc931fbaecf42249351bbc78760ed2c1b6566c1
Reviewed-on: https://pdfium-review.googlesource.com/41291
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-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 ed97b4f5bf..9f24ea7469 100644 --- a/core/fpdfdoc/cpdf_metadata_unittest.cpp +++ b/core/fpdfdoc/cpdf_metadata_unittest.cpp @@ -9,7 +9,7 @@ #include "testing/test_support.h" TEST(CPDF_MetadataTest, CheckSharedFormEmailAtTopLevel) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>0</adhocwf:workflowType>\n" @@ -26,7 +26,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormEmailAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>1</adhocwf:workflowType>\n" @@ -43,7 +43,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:workflowType>2</adhocwf:workflowType>\n" @@ -60,7 +60,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" "<adhocwf:state>2</adhocwf:state>\n" @@ -76,7 +76,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { } TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<grandparent><parent>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/1.0/\">\n" @@ -95,7 +95,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { } TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node></node>"; @@ -108,7 +108,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { } TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<node xmlns:adhocwf=\"http://ns.adobe.com/AcrobatAdhocWorkflow/2.0/\">\n" "<adhocwf:workflowType>1</adhocwf:workflowType>\n" @@ -124,7 +124,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { } TEST(CPDF_MetadataTest, CheckSharedFormMultipleErrors) { - const char* data = + static const char data[] = "<?xml charset=\"utf-8\"?>\n" "<grandparent>" "<parent>\n" |