Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <limits>
#include <memory>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "build/build_config.h"
#include "core/fpdfapi/font/cpdf_font.h"
#include "core/fpdfapi/page/cpdf_page.h"
#include "core/fpdfapi/page/cpdf_pageobject.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxge/cfx_defaultrenderdevice.h"
#include "core/fxge/fx_font.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "public/cpp/fpdf_scopers.h"
#include "public/fpdf_annot.h"
#include "public/fpdf_edit.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/embedder_test_constants.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/utils/file_util.h"
#include "testing/utils/hash.h"
#include "testing/utils/path_service.h"
#include "third_party/base/check.h"
Go to the source code of this file.
Classes | |
class | FPDFEditEmbedderTest |
class | FPDFEditMoveEmbedderTest |
Functions | |
TEST_F (FPDFEditEmbedderTest, EmbedNotoSansSCFont) | |
TEST_F (FPDFEditEmbedderTest, EmbedNotoSansSCFontWithCharcodes) | |
TEST_F (FPDFEditEmbedderTest, Bug2094) | |
TEST_F (FPDFEditEmbedderTest, EmptyCreation) | |
TEST_F (FPDFEditEmbedderTest, RasterizePDF) | |
TEST_F (FPDFEditEmbedderTest, AddPaths) | |
TEST_F (FPDFEditEmbedderTest, ClipPath) | |
TEST_F (FPDFEditEmbedderTest, BUG_1399) | |
TEST_F (FPDFEditEmbedderTest, BUG_1549) | |
TEST_F (FPDFEditEmbedderTest, SetText) | |
TEST_F (FPDFEditEmbedderTest, SetCharcodesBadParams) | |
TEST_F (FPDFEditEmbedderTest, SetTextKeepClippingPath) | |
TEST_F (FPDFEditEmbedderTest, BUG_1574) | |
TEST_F (FPDFEditEmbedderTest, BUG_1893) | |
TEST_F (FPDFEditEmbedderTest, RemoveTextObject) | |
TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingContentStreamAndResources) | |
TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingContentArrayAndResources) | |
TEST_F (FPDFEditEmbedderTest, RemoveTextObjectWithTwoPagesSharingResourcesDict) | |
void | CheckMarkCounts (FPDF_PAGE page, int start_from, int expected_object_count, size_t expected_prime_count, size_t expected_square_count, size_t expected_greater_than_ten_count, size_t expected_bounds_count) |
TEST_F (FPDFEditEmbedderTest, ReadMarkedObjectsIndirectDict) | |
TEST_F (FPDFEditEmbedderTest, RemoveMarkedObjectsPrime) | |
TEST_F (FPDFEditEmbedderTest, RemoveMarks) | |
TEST_F (FPDFEditEmbedderTest, RemoveMarkParam) | |
TEST_F (FPDFEditEmbedderTest, MaintainMarkedObjects) | |
TEST_F (FPDFEditEmbedderTest, MaintainIndirectMarkedObjects) | |
TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObject) | |
TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObjectSplitStreamsNotLonely) | |
TEST_F (FPDFEditEmbedderTest, RemoveExistingPageObjectSplitStreamsLonely) | |
TEST_F (FPDFEditEmbedderTest, GetContentStream) | |
TEST_F (FPDFEditEmbedderTest, RemoveAllFromStream) | |
TEST_F (FPDFEditEmbedderTest, RemoveAllFromSingleStream) | |
TEST_F (FPDFEditEmbedderTest, RemoveFirstFromSingleStream) | |
TEST_F (FPDFEditEmbedderTest, RemoveLastFromSingleStream) | |
TEST_F (FPDFEditEmbedderTest, RemoveAllFromMultipleStreams) | |
TEST_F (FPDFEditEmbedderTest, InsertPageObjectAndSave) | |
TEST_F (FPDFEditEmbedderTest, InsertPageObjectEditAndSave) | |
TEST_F (FPDFEditEmbedderTest, InsertAndRemoveLargeFile) | |
TEST_F (FPDFEditEmbedderTest, AddAndRemovePaths) | |
TEST_F (FPDFEditEmbedderTest, PathsPoints) | |
TEST_F (FPDFEditEmbedderTest, PathOnTopOfText) | |
TEST_F (FPDFEditEmbedderTest, EditOverExistingContent) | |
TEST_F (FPDFEditEmbedderTest, AddStrokedPaths) | |
TEST_F (FPDFEditEmbedderTest, AddStandardFontText) | |
TEST_F (FPDFEditEmbedderTest, AddStandardFontTextOfSizeZero) | |
TEST_F (FPDFEditEmbedderTest, GetTextRenderMode) | |
TEST_F (FPDFEditEmbedderTest, SetTextRenderMode) | |
TEST_F (FPDFEditEmbedderTest, TextFontProperties) | |
TEST_F (FPDFEditEmbedderTest, NoEmbeddedFontData) | |
TEST_F (FPDFEditEmbedderTest, GlyphPaths) | |
TEST_F (FPDFEditEmbedderTest, FormGetObjects) | |
TEST_F (FPDFEditEmbedderTest, ModifyFormObject) | |
TEST_F (FPDFEditEmbedderTest, AddStandardFontText2) | |
TEST_F (FPDFEditEmbedderTest, LoadStandardFonts) | |
TEST_F (FPDFEditEmbedderTest, GraphicsData) | |
TEST_F (FPDFEditEmbedderTest, DoubleGenerating) | |
TEST_F (FPDFEditEmbedderTest, LoadSimpleType1Font) | |
TEST_F (FPDFEditEmbedderTest, LoadSimpleTrueTypeFont) | |
TEST_F (FPDFEditEmbedderTest, LoadCIDType0Font) | |
TEST_F (FPDFEditEmbedderTest, LoadCIDType2Font) | |
TEST_F (FPDFEditEmbedderTest, NormalizeNegativeRotation) | |
TEST_F (FPDFEditEmbedderTest, AddTrueTypeFontText) | |
TEST_F (FPDFEditEmbedderTest, TransformAnnot) | |
TEST_F (FPDFEditEmbedderTest, SaveAndRender) | |
TEST_F (FPDFEditEmbedderTest, AddMark) | |
TEST_F (FPDFEditEmbedderTest, AddMarkCompressedStream) | |
TEST_F (FPDFEditEmbedderTest, SetMarkParam) | |
TEST_F (FPDFEditEmbedderTest, AddMarkedText) | |
TEST_F (FPDFEditEmbedderTest, MarkGetName) | |
TEST_F (FPDFEditEmbedderTest, MarkGetParamKey) | |
TEST_F (FPDFEditEmbedderTest, MarkGetIntParam) | |
TEST_F (FPDFEditEmbedderTest, MarkGetStringParam) | |
TEST_F (FPDFEditEmbedderTest, TraverseMarkedContentID) | |
TEST_F (FPDFEditEmbedderTest, GetBitmap) | |
TEST_F (FPDFEditEmbedderTest, GetBitmapIgnoresSetMatrix) | |
TEST_F (FPDFEditEmbedderTest, GetBitmapForJBigImage) | |
TEST_F (FPDFEditEmbedderTest, GetBitmapIgnoresSMask) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapHandlesSetMatrix) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapHandlesSMask) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapBadParams) | |
TEST_F (FPDFEditEmbedderTest, GetImageData) | |
TEST_F (FPDFEditEmbedderTest, GetImageMatrix) | |
TEST_F (FPDFEditEmbedderTest, DestroyPageObject) | |
TEST_F (FPDFEditEmbedderTest, GetImageFilters) | |
TEST_F (FPDFEditEmbedderTest, GetImageMetadata) | |
TEST_F (FPDFEditEmbedderTest, GetImageMetadataJpxLzw) | |
TEST_F (FPDFEditEmbedderTest, GetImagePixelSize) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForHelloWorldText) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForRotatedText) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForColorText) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForNewlyCreatedText) | |
TEST_F (FPDFEditEmbedderTest, GetRenderedBitmapForTextWithBadParameters) | |
TEST_F (FPDFEditEmbedderTest, MultipleGraphicsStates) | |
TEST_F (FPDFEditMoveEmbedderTest, MovePagesTest) | |
void CheckMarkCounts | ( | FPDF_PAGE | page, |
int | start_from, | ||
int | expected_object_count, | ||
size_t | expected_prime_count, | ||
size_t | expected_square_count, | ||
size_t | expected_greater_than_ten_count, | ||
size_t | expected_bounds_count ) |
Definition at line 1322 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_CountParams(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), FPDFPageObjMark_GetParamKey(), FPDFPageObjMark_GetParamStringValue(), and FPDFPageObjMark_GetParamValueType().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddAndRemovePaths | ) |
Definition at line 2415 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), FPDFPage_CountObjects(), FPDFPage_InsertObject(), FPDFPage_RemoveObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_Destroy(), FPDFPageObj_SetFillColor(), FPDFPath_SetDrawMode(), and pdfium::kBlankPage612By792Checksum.
TEST_F | ( | FPDFEditEmbedderTest | , |
AddMark | ) |
Definition at line 3763 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), and FPDFPageObj_AddMark().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddMarkCompressedStream | ) |
Definition at line 3796 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_AddMark(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddMarkedText | ) |
Definition at line 3908 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_InsertObject(), FPDFPageObj_AddMark(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObj_Transform(), FPDFPageObjMark_CountParams(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamBlobValue(), FPDFPageObjMark_GetParamIntValue(), FPDFPageObjMark_GetParamStringValue(), and FPDFPageObjMark_GetParamValueType().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddPaths | ) |
Definition at line 444 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_GetFillColor(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), FPDFPageObj_SetFillColor(), FPDFPageObj_SetMatrix(), FPDFPageObj_SetStrokeColor(), FPDFPath_BezierTo(), FPDFPath_Close(), FPDFPath_CountSegments(), FPDFPath_GetDrawMode(), FPDFPath_GetPathSegment(), FPDFPath_LineTo(), FPDFPath_SetDrawMode(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), FPDFPathSegment_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddStandardFontText | ) |
Definition at line 2670 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_GetMatrix(), FPDFPageObj_SetMatrix(), FPDFPageObj_Transform(), FPDFTextObj_GetFontSize(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddStandardFontText2 | ) |
Definition at line 3229 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_Transform().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddStandardFontTextOfSizeZero | ) |
Definition at line 2779 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_Transform(), FPDFTextObj_GetFontSize(), and pdfium::kBlankPage612By792Checksum.
TEST_F | ( | FPDFEditEmbedderTest | , |
AddStrokedPaths | ) |
Definition at line 2597 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_GetStrokeWidth(), FPDFPageObj_SetFillColor(), FPDFPageObj_SetStrokeColor(), FPDFPageObj_SetStrokeWidth(), FPDFPath_BezierTo(), FPDFPath_Close(), FPDFPath_LineTo(), FPDFPath_MoveTo(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
AddTrueTypeFontText | ) |
Definition at line 3589 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
Bug2094 | ) |
Definition at line 377 of file fpdf_edit_embeddertest.cpp.
TEST_F | ( | FPDFEditEmbedderTest | , |
BUG_1399 | ) |
Definition at line 718 of file fpdf_edit_embeddertest.cpp.
References FPDFClipPath_CountPaths(), FPDFClipPath_CountPathSegments(), FPDFClipPath_GetPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetClipPath(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
BUG_1549 | ) |
Definition at line 757 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GenerateContent().
TEST_F | ( | FPDFEditEmbedderTest | , |
BUG_1574 | ) |
Definition at line 938 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
BUG_1893 | ) |
Definition at line 1004 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
ClipPath | ) |
Definition at line 622 of file fpdf_edit_embeddertest.cpp.
References FPDFClipPath_CountPaths(), FPDFClipPath_CountPathSegments(), FPDFClipPath_GetPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetClipPath(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
DestroyPageObject | ) |
Definition at line 4628 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_CreateNewRect(), and FPDFPageObj_Destroy().
TEST_F | ( | FPDFEditEmbedderTest | , |
DoubleGenerating | ) |
Definition at line 3348 of file fpdf_edit_embeddertest.cpp.
References CPDFPageFromFPDFPage(), FPDF_ClosePage(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPageObj_Transform(), and FPDFPath_SetDrawMode().
TEST_F | ( | FPDFEditEmbedderTest | , |
EditOverExistingContent | ) |
Definition at line 2526 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
EmbedNotoSansSCFont | ) |
Definition at line 286 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
EmbedNotoSansSCFontWithCharcodes | ) |
Definition at line 331 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
EmptyCreation | ) |
Definition at line 392 of file fpdf_edit_embeddertest.cpp.
References FPDF_ClosePage(), and FPDFPage_GenerateContent().
TEST_F | ( | FPDFEditEmbedderTest | , |
FormGetObjects | ) |
Definition at line 3111 of file fpdf_edit_embeddertest.cpp.
References FPDFFormObj_CountObjects(), FPDFFormObj_GetObject(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_GetBounds(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), and FPDFPageObj_SetMatrix().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetBitmap | ) |
Definition at line 4237 of file fpdf_edit_embeddertest.cpp.
References FPDFImageObj_GetBitmap(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetBitmapForJBigImage | ) |
Definition at line 4348 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetBitmapIgnoresSetMatrix | ) |
Definition at line 4298 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), and FPDFPageObj_SetMatrix().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetBitmapIgnoresSMask | ) |
Definition at line 4366 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetContentStream | ) |
Definition at line 1896 of file fpdf_edit_embeddertest.cpp.
References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and CPDF_PageObject::GetContentStream().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImageData | ) |
Definition at line 4510 of file fpdf_edit_embeddertest.cpp.
References FPDFImageObj_GetImageDataDecoded(), FPDFImageObj_GetImageDataRaw(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImageFilters | ) |
Definition at line 4636 of file fpdf_edit_embeddertest.cpp.
References FPDFImageObj_GetImageFilter(), FPDFImageObj_GetImageFilterCount(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImageMatrix | ) |
Definition at line 4556 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImageMetadata | ) |
Definition at line 4682 of file fpdf_edit_embeddertest.cpp.
References FPDF_IMAGEOBJ_METADATA::bits_per_pixel, FPDF_IMAGEOBJ_METADATA::colorspace, FPDFImageObj_GetImageMetadata(), FPDFPage_GetObject(), FPDFPageObj_GetType(), FPDF_IMAGEOBJ_METADATA::height, FPDF_IMAGEOBJ_METADATA::horizontal_dpi, FPDF_IMAGEOBJ_METADATA::marked_content_id, FPDF_IMAGEOBJ_METADATA::vertical_dpi, and FPDF_IMAGEOBJ_METADATA::width.
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImageMetadataJpxLzw | ) |
Definition at line 4732 of file fpdf_edit_embeddertest.cpp.
References FPDF_IMAGEOBJ_METADATA::bits_per_pixel, FPDF_IMAGEOBJ_METADATA::colorspace, FPDFImageObj_GetImageMetadata(), FPDFPage_GetObject(), FPDFPageObj_GetType(), FPDF_IMAGEOBJ_METADATA::height, FPDF_IMAGEOBJ_METADATA::horizontal_dpi, FPDF_IMAGEOBJ_METADATA::marked_content_id, FPDF_IMAGEOBJ_METADATA::vertical_dpi, and FPDF_IMAGEOBJ_METADATA::width.
TEST_F | ( | FPDFEditEmbedderTest | , |
GetImagePixelSize | ) |
Definition at line 4753 of file fpdf_edit_embeddertest.cpp.
References FPDFImageObj_GetImagePixelSize(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapBadParams | ) |
Definition at line 4487 of file fpdf_edit_embeddertest.cpp.
References FPDFImageObj_GetRenderedBitmap(), FPDFPage_GetObject(), and FPDFPageObj_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapForColorText | ) |
Definition at line 4967 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapForHelloWorldText | ) |
Definition at line 4785 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapForNewlyCreatedText | ) |
Definition at line 4989 of file fpdf_edit_embeddertest.cpp.
References CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapForRotatedText | ) |
Definition at line 4905 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapForTextWithBadParameters | ) |
Definition at line 5018 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), and FPDFTextObj_GetRenderedBitmap().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapHandlesSetMatrix | ) |
Definition at line 4386 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetMatrix(), FPDFPageObj_GetType(), FPDFPageObj_SetMatrix(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetRenderedBitmapHandlesSMask | ) |
Definition at line 4450 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
GetTextRenderMode | ) |
Definition at line 2807 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFTextObj_GetTextRenderMode().
TEST_F | ( | FPDFEditEmbedderTest | , |
GlyphPaths | ) |
Definition at line 3078 of file fpdf_edit_embeddertest.cpp.
References FPDFFont_GetGlyphPath(), FPDFGlyphPath_CountGlyphSegments(), FPDFGlyphPath_GetGlyphPathSegment(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPathSegment_GetType(), and FPDFTextObj_GetFont().
TEST_F | ( | FPDFEditEmbedderTest | , |
GraphicsData | ) |
Definition at line 3290 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetBlendMode(), FPDFPageObj_SetFillColor(), and FPDFPageObj_SetStrokeColor().
TEST_F | ( | FPDFEditEmbedderTest | , |
InsertAndRemoveLargeFile | ) |
Definition at line 2333 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_InsertObject(), FPDFPage_RemoveObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_Destroy(), FPDFPageObj_SetFillColor(), FPDFPath_SetDrawMode(), pdfium::ManyRectanglesChecksum(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
InsertPageObjectAndSave | ) |
Definition at line 2269 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), and FPDFPath_SetDrawMode().
TEST_F | ( | FPDFEditEmbedderTest | , |
InsertPageObjectEditAndSave | ) |
Definition at line 2299 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), and FPDFPath_SetDrawMode().
TEST_F | ( | FPDFEditEmbedderTest | , |
LoadCIDType0Font | ) |
Definition at line 3485 of file fpdf_edit_embeddertest.cpp.
References CPDF_Font::IsCIDFont(), and CPDF_Object::kString.
TEST_F | ( | FPDFEditEmbedderTest | , |
LoadCIDType2Font | ) |
Definition at line 3536 of file fpdf_edit_embeddertest.cpp.
References CPDF_Font::IsCIDFont().
TEST_F | ( | FPDFEditEmbedderTest | , |
LoadSimpleTrueTypeFont | ) |
Definition at line 3456 of file fpdf_edit_embeddertest.cpp.
References CPDF_Font::IsTrueTypeFont().
TEST_F | ( | FPDFEditEmbedderTest | , |
LoadSimpleType1Font | ) |
Definition at line 3426 of file fpdf_edit_embeddertest.cpp.
References CPDF_Font::IsType1Font().
TEST_F | ( | FPDFEditEmbedderTest | , |
LoadStandardFonts | ) |
Definition at line 3249 of file fpdf_edit_embeddertest.cpp.
TEST_F | ( | FPDFEditEmbedderTest | , |
MaintainIndirectMarkedObjects | ) |
Definition at line 1736 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().
TEST_F | ( | FPDFEditEmbedderTest | , |
MaintainMarkedObjects | ) |
Definition at line 1704 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().
TEST_F | ( | FPDFEditEmbedderTest | , |
MarkGetIntParam | ) |
Definition at line 4092 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamIntValue().
TEST_F | ( | FPDFEditEmbedderTest | , |
MarkGetName | ) |
Definition at line 4019 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetName().
TEST_F | ( | FPDFEditEmbedderTest | , |
MarkGetParamKey | ) |
Definition at line 4052 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamKey().
TEST_F | ( | FPDFEditEmbedderTest | , |
MarkGetStringParam | ) |
Definition at line 4128 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetObject(), FPDFPageObj_GetMark(), and FPDFPageObjMark_GetParamStringValue().
TEST_F | ( | FPDFEditEmbedderTest | , |
ModifyFormObject | ) |
Definition at line 3167 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), FPDFPageObj_Transform(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
MultipleGraphicsStates | ) |
Definition at line 5067 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GenerateContent(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
NoEmbeddedFontData | ) |
Definition at line 3039 of file fpdf_edit_embeddertest.cpp.
References FPDFFont_GetIsEmbedded(), FPDFPage_CountObjects(), FPDFPage_GetObject(), and FPDFTextObj_GetFont().
TEST_F | ( | FPDFEditEmbedderTest | , |
NormalizeNegativeRotation | ) |
Definition at line 3579 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GetRotation().
TEST_F | ( | FPDFEditEmbedderTest | , |
PathOnTopOfText | ) |
Definition at line 2483 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_CreateNewRect(), FPDFPageObj_SetFillColor(), FPDFPath_Close(), FPDFPath_LineTo(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
PathsPoints | ) |
Definition at line 2456 of file fpdf_edit_embeddertest.cpp.
References FPDFPageObj_Destroy(), FPDFPath_CountSegments(), FPDFPath_GetPathSegment(), FPDFPathSegment_GetClose(), FPDFPathSegment_GetPoint(), and FPDFPathSegment_GetType().
TEST_F | ( | FPDFEditEmbedderTest | , |
RasterizePDF | ) |
Definition at line 406 of file fpdf_edit_embeddertest.cpp.
TEST_F | ( | FPDFEditEmbedderTest | , |
ReadMarkedObjectsIndirectDict | ) |
Definition at line 1424 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveAllFromMultipleStreams | ) |
Definition at line 2217 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveAllFromSingleStream | ) |
Definition at line 2038 of file fpdf_edit_embeddertest.cpp.
References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CPDF_PageObject::GetContentStream().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveAllFromStream | ) |
Definition at line 1922 of file fpdf_edit_embeddertest.cpp.
References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), CPDF_PageObject::GetContentStream(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveExistingPageObject | ) |
Definition at line 1768 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), and FPDFPageObj_Destroy().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveExistingPageObjectSplitStreamsLonely | ) |
Definition at line 1855 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveExistingPageObjectSplitStreamsNotLonely | ) |
Definition at line 1798 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveFirstFromSingleStream | ) |
Definition at line 2092 of file fpdf_edit_embeddertest.cpp.
References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), and CPDF_PageObject::GetContentStream().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveLastFromSingleStream | ) |
Definition at line 2154 of file fpdf_edit_embeddertest.cpp.
References CPDFPageObjectFromFPDFPageObject(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPage_RemoveObject(), FPDFPageObj_Destroy(), CPDF_PageObject::GetContentStream(), and pdfium::HelloWorldRemovedChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveMarkedObjectsPrime | ) |
Definition at line 1435 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveMarkParam | ) |
Definition at line 1619 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), and FPDFPageObjMark_RemoveParam().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveMarks | ) |
Definition at line 1565 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObj_RemoveMark(), and FPDFPageObjMark_GetName().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveTextObject | ) |
Definition at line 1092 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveTextObjectWithTwoPagesSharingContentArrayAndResources | ) |
Definition at line 1205 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveTextObjectWithTwoPagesSharingContentStreamAndResources | ) |
Definition at line 1139 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
RemoveTextObjectWithTwoPagesSharingResourcesDict | ) |
Definition at line 1264 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), and pdfium::HelloWorldChecksum().
TEST_F | ( | FPDFEditEmbedderTest | , |
SaveAndRender | ) |
Definition at line 3727 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_GenerateContent(), FPDFPage_InsertObject(), FPDFPageObj_CreateNewPath(), FPDFPageObj_SetFillColor(), FPDFPath_BezierTo(), FPDFPath_Close(), FPDFPath_LineTo(), FPDFPath_SetDrawMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
SetCharcodesBadParams | ) |
Definition at line 845 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), and FPDFPage_GetObject().
TEST_F | ( | FPDFEditEmbedderTest | , |
SetMarkParam | ) |
Definition at line 3843 of file fpdf_edit_embeddertest.cpp.
References CheckMarkCounts(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetMark(), FPDFPageObjMark_GetName(), and FPDFPageObjMark_GetParamStringValue().
TEST_F | ( | FPDFEditEmbedderTest | , |
SetText | ) |
Definition at line 787 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
SetTextKeepClippingPath | ) |
Definition at line 864 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFPageObj_GetType(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
SetTextRenderMode | ) |
Definition at line 2825 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GenerateContent(), FPDFPage_GetObject(), FPDFTextObj_GetTextRenderMode(), FPDFTextObj_SetTextRenderMode(), and CFX_DefaultRenderDevice::UseSkiaRenderer().
TEST_F | ( | FPDFEditEmbedderTest | , |
TextFontProperties | ) |
Definition at line 2914 of file fpdf_edit_embeddertest.cpp.
References FPDFFont_GetAscent(), FPDFFont_GetDescent(), FPDFFont_GetFlags(), FPDFFont_GetFontName(), FPDFFont_GetGlyphPath(), FPDFFont_GetGlyphWidth(), FPDFFont_GetIsEmbedded(), FPDFFont_GetItalicAngle(), FPDFFont_GetWeight(), FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFTextObj_GetFont(), and FPDFTextObj_GetFontSize().
TEST_F | ( | FPDFEditEmbedderTest | , |
TransformAnnot | ) |
Definition at line 3645 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_TransformAnnots().
TEST_F | ( | FPDFEditEmbedderTest | , |
TraverseMarkedContentID | ) |
Definition at line 4178 of file fpdf_edit_embeddertest.cpp.
References FPDFPage_CountObjects(), FPDFPage_GetObject(), FPDFPageObj_CountMarks(), FPDFPageObj_GetMark(), FPDFPageObj_GetType(), FPDFPageObjMark_CountParams(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamIntValue(), FPDFPageObjMark_GetParamKey(), and FPDFPageObjMark_GetParamValueType().
TEST_F | ( | FPDFEditMoveEmbedderTest | , |
MovePagesTest | ) |
Definition at line 5119 of file fpdf_edit_embeddertest.cpp.