summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-09-18 16:48:31 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-18 16:48:31 +0000
commit6fc8d877d7450905623c6abb1094ab99f5bd80cb (patch)
tree6230e86ab012e53634e212d7256efde745d05d55 /fpdfsdk
parentdebba6d2124e780ce627be8e058a7ce5d81d5910 (diff)
downloadpdfium-6fc8d877d7450905623c6abb1094ab99f5bd80cb.tar.xz
Encode mark names when writing to file.
Bug: pdfium:1150 Change-Id: I7e589fb3d164dfc9b39a7a3f6e782c09331cc32d Reviewed-on: https://pdfium-review.googlesource.com/42630 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdf_edit_embeddertest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fpdf_edit_embeddertest.cpp b/fpdfsdk/fpdf_edit_embeddertest.cpp
index 3d10ba06d9..3bacb0b2eb 100644
--- a/fpdfsdk/fpdf_edit_embeddertest.cpp
+++ b/fpdfsdk/fpdf_edit_embeddertest.cpp
@@ -2568,7 +2568,7 @@ TEST_F(FPDFEditEmbeddertest, AddMarkedText) {
// Add a mark with the tag "TestMarkName" to that text.
EXPECT_EQ(0, FPDFPageObj_CountMarks(text_object));
- FPDF_PAGEOBJECTMARK mark = FPDFPageObj_AddMark(text_object, "TestMarkName");
+ FPDF_PAGEOBJECTMARK mark = FPDFPageObj_AddMark(text_object, "Test Mark Name");
EXPECT_TRUE(mark);
EXPECT_EQ(1, FPDFPageObj_CountMarks(text_object));
EXPECT_EQ(mark, FPDFPageObj_GetMark(text_object, 0));
@@ -2576,7 +2576,7 @@ TEST_F(FPDFEditEmbeddertest, AddMarkedText) {
EXPECT_GT(FPDFPageObjMark_GetName(mark, buffer, sizeof(buffer)), 0u);
std::wstring name =
GetPlatformWString(reinterpret_cast<unsigned short*>(buffer));
- EXPECT_EQ(L"TestMarkName", name);
+ EXPECT_EQ(L"Test Mark Name", name);
// Add parameters:
// - int "IntKey" : 42
@@ -2650,7 +2650,7 @@ TEST_F(FPDFEditEmbeddertest, AddMarkedText) {
EXPECT_TRUE(mark);
EXPECT_GT(FPDFPageObjMark_GetName(mark, buffer, sizeof(buffer)), 0u);
name = GetPlatformWString(reinterpret_cast<unsigned short*>(buffer));
- EXPECT_EQ(L"TestMarkName", name);
+ EXPECT_EQ(L"Test Mark Name", name);
CloseSavedPage(saved_page);
CloseSavedDocument();