summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_edit_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fpdf_edit_embeddertest.cpp')
-rw-r--r--fpdfsdk/fpdf_edit_embeddertest.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/fpdfsdk/fpdf_edit_embeddertest.cpp b/fpdfsdk/fpdf_edit_embeddertest.cpp
index 3c2b05ed8a..e692a94e04 100644
--- a/fpdfsdk/fpdf_edit_embeddertest.cpp
+++ b/fpdfsdk/fpdf_edit_embeddertest.cpp
@@ -464,7 +464,7 @@ TEST_F(FPDFEditEmbeddertest, SetText) {
UnloadPage(page);
// Re-open the file and check the changes were kept in the saved .pdf.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(2, FPDFPage_CountObjects(saved_page));
{
@@ -732,7 +732,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveMarks) {
UnloadPage(page);
// Re-open the file and check the prime marks are not there anymore.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
CheckMarkCounts(saved_page, 1, kExpectedObjectCount, 0, 4, 9, 1);
@@ -784,7 +784,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveMarkParam) {
UnloadPage(page);
// Re-open the file and check the "Factor" parameters are still gone.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
size_t square_count = 0;
@@ -839,7 +839,7 @@ TEST_F(FPDFEditEmbeddertest, MaintainMarkedObjects) {
UnloadPage(page);
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
CheckMarkCounts(saved_page, 2, 18, 8, 3, 9, 1);
@@ -870,7 +870,7 @@ TEST_F(FPDFEditEmbeddertest, MaintainIndirectMarkedObjects) {
UnloadPage(page);
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
CheckMarkCounts(saved_page, 2, 18, 8, 3, 9, 1);
@@ -901,7 +901,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveExistingPageObject) {
FPDFPageObj_Destroy(page_object);
// Re-open the file and check the page object count is still 1.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(1, FPDFPage_CountObjects(saved_page));
CloseSavedPage(saved_page);
@@ -942,7 +942,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveExistingPageObjectSplitStreamsNotLonely) {
FPDFPageObj_Destroy(page_object);
// Re-open the file and check the page object count is still 2.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(2, FPDFPage_CountObjects(saved_page));
@@ -989,7 +989,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveExistingPageObjectSplitStreamsLonely) {
FPDFPageObj_Destroy(page_object);
// Re-open the file and check the page object count is still 2.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(2, FPDFPage_CountObjects(saved_page));
@@ -1104,7 +1104,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveAllFromStream) {
// Re-open the file and check the page object count is still 16, and that
// content stream 1 was removed.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
// Content stream 0: page objects 0-14.
@@ -1171,7 +1171,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveAllFromSingleStream) {
UnloadPage(page);
// Re-open the file and check the page object count is still 0.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(0, FPDFPage_CountObjects(saved_page));
@@ -1235,7 +1235,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveFirstFromSingleStream) {
UnloadPage(page);
// Re-open the file and check the page object count is still 0.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
ASSERT_EQ(1, FPDFPage_CountObjects(saved_page));
@@ -1303,7 +1303,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveLastFromSingleStream) {
UnloadPage(page);
// Re-open the file and check the page object count is still 0.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
ASSERT_EQ(1, FPDFPage_CountObjects(saved_page));
@@ -1359,7 +1359,7 @@ TEST_F(FPDFEditEmbeddertest, RemoveAllFromMultipleStreams) {
UnloadPage(page);
// Re-open the file and check the page object count is still 0.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(0, FPDFPage_CountObjects(saved_page));
@@ -1394,7 +1394,7 @@ TEST_F(FPDFEditEmbeddertest, InsertPageObjectAndSave) {
UnloadPage(page);
// Re-open the file and check the page object count is still 3.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(3, FPDFPage_CountObjects(saved_page));
CloseSavedPage(saved_page);
@@ -1427,7 +1427,7 @@ TEST_F(FPDFEditEmbeddertest, InsertPageObjectEditAndSave) {
UnloadPage(page);
// Re-open the file and check the page object count is still 3.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(3, FPDFPage_CountObjects(saved_page));
CloseSavedPage(saved_page);
@@ -1563,7 +1563,7 @@ TEST_F(FPDFEditEmbeddertest, EditOverExistingContent) {
EXPECT_TRUE(FPDF_SaveAsCopy(document(), this, 0));
UnloadPage(page);
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
VerifySavedRendering(saved_page, 612, 792,
"ad04e5bd0f471a9a564fb034bd0fb073");
@@ -2359,7 +2359,7 @@ TEST_F(FPDFEditEmbeddertest, AddMark) {
UnloadPage(page);
// Re-open the file and check the new mark is present.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
CheckMarkCounts(saved_page, 1, kExpectedObjectCount, 8, 4, 9, 2);
@@ -2415,7 +2415,7 @@ TEST_F(FPDFEditEmbeddertest, SetMarkParam) {
UnloadPage(page);
// Re-open the file and cerify "Position" still maps to "End".
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
CheckMarkCounts(saved_page, 1, kExpectedObjectCount, 8, 4, 9, 1);
@@ -2525,7 +2525,7 @@ TEST_F(FPDFEditEmbeddertest, AddMarkedText) {
FPDF_ClosePage(page);
// Re-open the file and check the changes were kept in the saved .pdf.
- OpenSavedDocument();
+ OpenSavedDocument(nullptr);
FPDF_PAGE saved_page = LoadSavedPage(0);
EXPECT_EQ(1, FPDFPage_CountObjects(saved_page));