From ce26d7d03d6c80f7dd1db0f650cac6f93fd53fee Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 24 Aug 2018 16:58:08 +0000 Subject: 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 Commit-Queue: Lei Zhang --- core/fpdfdoc/cpdf_metadata_unittest.cpp | 16 ++++++++-------- 1 file 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[] = "\n" "\n" "0\n" @@ -26,7 +26,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormEmailAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { - const char* data = + static const char data[] = "\n" "\n" "1\n" @@ -43,7 +43,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAcrobatAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { - const char* data = + static const char data[] = "\n" "\n" "2\n" @@ -60,7 +60,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormFilesystemAtTopLevel) { } TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { - const char* data = + static const char data[] = "\n" "\n" "2\n" @@ -76,7 +76,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWithoutWorkflow) { } TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { - const char* data = + static const char data[] = "\n" "\n" "\n" @@ -95,7 +95,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsChild) { } TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { - const char* data = + static const char data[] = "\n" ""; @@ -108,7 +108,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormAsNoAdhoc) { } TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { - const char* data = + static const char data[] = "\n" "\n" "1\n" @@ -124,7 +124,7 @@ TEST(CPDF_MetadataTest, CheckSharedFormWrongNamespace) { } TEST(CPDF_MetadataTest, CheckSharedFormMultipleErrors) { - const char* data = + static const char data[] = "\n" "" "\n" -- cgit v1.2.3