Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
EmbedderTest Class Reference

#include <embedder_test.h>

Inherits testing::Test, _UNSUPPORT_INFO, _IPDF_JsPlatform, _FPDF_FORMFILLINFO, and FPDF_FILEWRITE_.

Inherited by CFX_WindowsRenderDeviceTest, CFX_WindowsRenderDeviceTest, CPDFParserEmbedderTest, CPDFParserEmbedderTest, CPDFSDK_AnnotIteratorTest, CPDFSDK_AnnotIteratorTest, CPDFSDK_BAAnnotTest, CPDFSDK_BAAnnotTest, CPDFSecurityHandlerEmbedderTest, CPDFSecurityHandlerEmbedderTest, CPDF_CreatorEmbedderTest, CPDF_CreatorEmbedderTest, CPWLComboBoxEmbedderTest, CPWLEditEmbedderTest, CPWLEditEmbedderTest, CPWLSpecialButtonEmbedderTest, CPWLSpecialButtonEmbedderTest, CXFASimpleParserEmbedderTest, CXFASimpleParserEmbedderTest, FPDFAnnotEmbedderTest, FPDFAnnotEmbedderTest, FPDFAttachmentEmbedderTest, FPDFAttachmentEmbedderTest, FPDFDataAvailEmbedderTest, FPDFDataAvailEmbedderTest, FPDFDocEmbedderTest, FPDFDocEmbedderTest, FPDFEditEmbedderTest, FPDFEditEmbedderTest, FPDFEditMoveEmbedderTest, FPDFEditMoveEmbedderTest, FPDFEditPageEmbedderTest, FPDFEditPageEmbedderTest, FPDFEditPathEmbedderTest, FPDFEditPathEmbedderTest, FPDFExtEmbedderTest, FPDFExtEmbedderTest, FPDFFormFillActionUriTest, FPDFFormFillActionUriTest, FPDFFormFillInteractiveEmbedderTest, FPDFFormFillInteractiveEmbedderTest, FPDFJavaScriptEmbedderTest, FPDFJavaScriptEmbedderTest, FPDFProgressiveRenderEmbedderTest, FPDFProgressiveRenderEmbedderTest, FPDFRenderPatternEmbedderTest, FPDFRenderPatternEmbedderTest, FPDFSaveEmbedderTest, FPDFSaveEmbedderTest, FPDFSearchExEmbedderTest, FPDFSearchExEmbedderTest, FPDFSignatureEmbedderTest, FPDFSignatureEmbedderTest, FPDFStructTreeEmbedderTest, FPDFStructTreeEmbedderTest, FPDFTextEmbedderTest, FPDFTextEmbedderTest, FPDFThumbnailEmbedderTest, FPDFThumbnailEmbedderTest, FPDFTransformEmbedderTest, FPDFTransformEmbedderTest, FPDFViewEmbedderTest, FPDFViewEmbedderTest, FXGETextEmbedderTest, FXGETextEmbedderTest, JBig2EmbedderTest, JBig2EmbedderTest, JSEmbedderTest, PDFEditImgTest, and PDFEditImgTest.

+ Collaboration diagram for EmbedderTest:

Classes

class  Delegate
 

Public Types

enum class  LinearizeOption { kDefaultLinearize , kMustLinearize }
 
enum class  JavaScriptOption { kDisableJavaScript , kEnableJavaScript }
 

Public Member Functions

 EmbedderTest ()
 
virtual ~EmbedderTest ()
 
void SetUp () override
 
void TearDown () override
 
DelegateGetDelegate ()
 
void SetDelegate (Delegate *delegate)
 
void SetFormFillInfoVersion (int form_fill_info_version)
 
void SetDocumentFromAvail ()
 
FPDF_DOCUMENT document () const
 
FPDF_DOCUMENT saved_document () const
 
FPDF_FORMHANDLE form_handle () const
 
FPDF_FORMHANDLE saved_form_handle () const
 
void CreateAvail (FX_FILEAVAIL *file_avail, FPDF_FILEACCESS *file)
 
FPDF_AVAIL avail ()
 
void CreateEmptyDocument ()
 
void CreateEmptyDocumentWithoutFormFillEnvironment ()
 
virtual bool OpenDocumentWithOptions (const std::string &filename, const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option)
 
bool OpenDocument (const std::string &filename)
 
bool OpenDocumentLinearized (const std::string &filename)
 
bool OpenDocumentWithPassword (const std::string &filename, const char *password)
 
bool OpenDocumentWithoutJavaScript (const std::string &filename)
 
void CloseDocument ()
 
void DoOpenActions ()
 
int GetFirstPageNum ()
 
int GetPageCount ()
 
FPDF_PAGE LoadPage (int page_number)
 
FPDF_PAGE LoadPageNoEvents (int page_number)
 
void UnloadPage (FPDF_PAGE page)
 
void UnloadPageNoEvents (FPDF_PAGE page)
 
void SetInitialFormFieldHighlight (FPDF_FORMHANDLE form)
 
ScopedFPDFBitmap RenderLoadedPage (FPDF_PAGE page)
 
ScopedFPDFBitmap RenderLoadedPageWithFlags (FPDF_PAGE page, int flags)
 
ScopedFPDFBitmap RenderSavedPage (FPDF_PAGE page)
 
ScopedFPDFBitmap RenderSavedPageWithFlags (FPDF_PAGE page, int flags)
 

Static Public Member Functions

static ScopedFPDFBitmap RenderPageWithFlags (FPDF_PAGE page, FPDF_FORMHANDLE handle, int flags)
 
static ScopedFPDFBitmap RenderPage (FPDF_PAGE page)
 
static int BytesPerPixelForFormat (int format)
 

Protected Types

using PageNumberToHandleMap = std::map<int, FPDF_PAGE>
 

Protected Member Functions

bool OpenDocumentHelper (const char *password, LinearizeOption linearize_option, JavaScriptOption javascript_option, FakeFileAccess *network_simulator, ScopedFPDFDocument *document, ScopedFPDFAvail *avail, ScopedFPDFFormHandle *form_handle)
 
FPDF_FORMHANDLE SetupFormFillEnvironment (FPDF_DOCUMENT doc, JavaScriptOption javascript_option)
 
void ClearString ()
 
const std::string & GetString () const
 
FPDF_DOCUMENT OpenSavedDocument ()
 
FPDF_DOCUMENT OpenSavedDocumentWithPassword (const char *password)
 
void CloseSavedDocument ()
 
FPDF_PAGE LoadSavedPage (int page_number)
 
void CloseSavedPage (FPDF_PAGE page)
 
void VerifySavedRendering (FPDF_PAGE page, int width, int height, const char *md5)
 
void VerifySavedDocument (int width, int height, const char *md5)
 
void SetWholeFileAvailable ()
 
void OpenPDFFileForWrite (const std::string &filename)
 
void ClosePDFFileForWrite ()
 

Static Protected Member Functions

static std::string HashBitmap (FPDF_BITMAP bitmap)
 
static void WriteBitmapToPng (FPDF_BITMAP bitmap, const std::string &filename)
 
static void CompareBitmap (FPDF_BITMAP bitmap, int expected_width, int expected_height, const char *expected_md5sum)
 
static int GetBlockFromString (void *param, unsigned long pos, unsigned char *buf, unsigned long size)
 

Additional Inherited Members

- Public Attributes inherited from _UNSUPPORT_INFO
int version
 
void(* FSDK_UnSupport_Handler )(struct _UNSUPPORT_INFO *pThis, int nType)
 
- Public Attributes inherited from _IPDF_JsPlatform
int version
 
int(* app_alert )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Msg, FPDF_WIDESTRING Title, int Type, int Icon)
 
void(* app_beep )(struct _IPDF_JsPlatform *pThis, int nType)
 
int(* app_response )(struct _IPDF_JsPlatform *pThis, FPDF_WIDESTRING Question, FPDF_WIDESTRING Title, FPDF_WIDESTRING Default, FPDF_WIDESTRING cLabel, FPDF_BOOL bPassword, void *response, int length)
 
int(* Doc_getFilePath )(struct _IPDF_JsPlatform *pThis, void *filePath, int length)
 
void(* Doc_mail )(struct _IPDF_JsPlatform *pThis, void *mailData, int length, FPDF_BOOL bUI, FPDF_WIDESTRING To, FPDF_WIDESTRING Subject, FPDF_WIDESTRING CC, FPDF_WIDESTRING BCC, FPDF_WIDESTRING Msg)
 
void(* Doc_print )(struct _IPDF_JsPlatform *pThis, FPDF_BOOL bUI, int nStart, int nEnd, FPDF_BOOL bSilent, FPDF_BOOL bShrinkToFit, FPDF_BOOL bPrintAsImage, FPDF_BOOL bReverse, FPDF_BOOL bAnnotations)
 
void(* Doc_submitForm )(struct _IPDF_JsPlatform *pThis, void *formData, int length, FPDF_WIDESTRING URL)
 
void(* Doc_gotoPage )(struct _IPDF_JsPlatform *pThis, int nPageNum)
 
int(* Field_browse )(struct _IPDF_JsPlatform *pThis, void *filePath, int length)
 
voidm_pFormfillinfo
 
voidm_isolate
 
unsigned int m_v8EmbedderSlot
 
- Public Attributes inherited from _FPDF_FORMFILLINFO
int version
 
void(* Release )(struct _FPDF_FORMFILLINFO *pThis)
 
void(* FFI_Invalidate )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom)
 
void(* FFI_OutputSelectedRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double left, double top, double right, double bottom)
 
void(* FFI_SetCursor )(struct _FPDF_FORMFILLINFO *pThis, int nCursorType)
 
int(* FFI_SetTimer )(struct _FPDF_FORMFILLINFO *pThis, int uElapse, TimerCallback lpTimerFunc)
 
void(* FFI_KillTimer )(struct _FPDF_FORMFILLINFO *pThis, int nTimerID)
 
FPDF_SYSTEMTIME(* FFI_GetLocalTime )(struct _FPDF_FORMFILLINFO *pThis)
 
void(* FFI_OnChange )(struct _FPDF_FORMFILLINFO *pThis)
 
FPDF_PAGE(* FFI_GetPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int nPageIndex)
 
FPDF_PAGE(* FFI_GetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document)
 
int(* FFI_GetRotation )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page)
 
void(* FFI_ExecuteNamedAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING namedAction)
 
void(* FFI_SetTextFieldFocus )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING value, FPDF_DWORD valueLen, FPDF_BOOL is_focus)
 
void(* FFI_DoURIAction )(struct _FPDF_FORMFILLINFO *pThis, FPDF_BYTESTRING bsURI)
 
void(* FFI_DoGoToAction )(struct _FPDF_FORMFILLINFO *pThis, int nPageIndex, int zoomMode, float *fPosArray, int sizeofArray)
 
IPDF_JSPLATFORMm_pJsPlatform
 
FPDF_BOOL xfa_disabled
 
void(* FFI_DisplayCaret )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_BOOL bVisible, double left, double top, double right, double bottom)
 
int(* FFI_GetCurrentPageIndex )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document)
 
void(* FFI_SetCurrentPage )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, int iCurPage)
 
void(* FFI_GotoURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_DOCUMENT document, FPDF_WIDESTRING wsURL)
 
void(* FFI_GetPageViewRect )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, double *left, double *top, double *right, double *bottom)
 
void(* FFI_PageEvent )(struct _FPDF_FORMFILLINFO *pThis, int page_count, FPDF_DWORD event_type)
 
FPDF_BOOL(* FFI_PopupMenu )(struct _FPDF_FORMFILLINFO *pThis, FPDF_PAGE page, FPDF_WIDGET hWidget, int menuFlag, float x, float y)
 
FPDF_FILEHANDLER *(* FFI_OpenFile )(struct _FPDF_FORMFILLINFO *pThis, int fileFlag, FPDF_WIDESTRING wsURL, const char *mode)
 
void(* FFI_EmailTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, FPDF_WIDESTRING pTo, FPDF_WIDESTRING pSubject, FPDF_WIDESTRING pCC, FPDF_WIDESTRING pBcc, FPDF_WIDESTRING pMsg)
 
void(* FFI_UploadTo )(struct _FPDF_FORMFILLINFO *pThis, FPDF_FILEHANDLER *fileHandler, int fileFlag, FPDF_WIDESTRING uploadTo)
 
int(* FFI_GetPlatform )(struct _FPDF_FORMFILLINFO *pThis, void *platform, int length)
 
int(* FFI_GetLanguage )(struct _FPDF_FORMFILLINFO *pThis, void *language, int length)
 
FPDF_FILEHANDLER *(* FFI_DownloadFromURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING URL)
 
FPDF_BOOL(* FFI_PostRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsContentType, FPDF_WIDESTRING wsEncode, FPDF_WIDESTRING wsHeader, FPDF_BSTR *response)
 
FPDF_BOOL(* FFI_PutRequestURL )(struct _FPDF_FORMFILLINFO *pThis, FPDF_WIDESTRING wsURL, FPDF_WIDESTRING wsData, FPDF_WIDESTRING wsEncode)
 
void(* FFI_OnFocusChange )(struct _FPDF_FORMFILLINFO *param, FPDF_ANNOTATION annot, int page_index)
 
void(* FFI_DoURIActionWithKeyboardModifier )(struct _FPDF_FORMFILLINFO *param, FPDF_BYTESTRING uri, int modifiers)
 
- Public Attributes inherited from FPDF_FILEWRITE_
int version
 
int(* WriteBlock )(struct FPDF_FILEWRITE_ *pThis, const void *pData, unsigned long size)
 

Detailed Description

Definition at line 35 of file embedder_test.h.

Member Typedef Documentation

◆ PageNumberToHandleMap

using EmbedderTest::PageNumberToHandleMap = std::map<int, FPDF_PAGE>
protected

Definition at line 218 of file embedder_test.h.

Member Enumeration Documentation

◆ JavaScriptOption

enum class EmbedderTest::JavaScriptOption
strong
Enumerator
kDisableJavaScript 
kEnableJavaScript 

Definition at line 42 of file embedder_test.h.

◆ LinearizeOption

enum class EmbedderTest::LinearizeOption
strong
Enumerator
kDefaultLinearize 
kMustLinearize 

Definition at line 41 of file embedder_test.h.

Constructor & Destructor Documentation

◆ EmbedderTest()

EmbedderTest::EmbedderTest ( )

Definition at line 265 of file embedder_test.cpp.

References EmbedderTest(), FPDF_FILEWRITE_::version, and FPDF_FILEWRITE_::WriteBlock.

Referenced by EmbedderTest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~EmbedderTest()

EmbedderTest::~EmbedderTest ( )
virtualdefault

Member Function Documentation

◆ avail()

FPDF_AVAIL EmbedderTest::avail ( )
inline

Definition at line 114 of file embedder_test.h.

◆ BytesPerPixelForFormat()

int EmbedderTest::BytesPerPixelForFormat ( int format)
static

Definition at line 671 of file embedder_test.cpp.

Referenced by FPDFViewEmbedderTest::TestRenderPageBitmapWithExternalMemory(), and FPDFViewEmbedderTest::TestRenderPageBitmapWithInternalMemoryAndStride().

+ Here is the caller graph for this function:

◆ ClearString()

void EmbedderTest::ClearString ( )
inlineprotected

Definition at line 245 of file embedder_test.h.

◆ CloseDocument()

void EmbedderTest::CloseDocument ( )

Definition at line 423 of file embedder_test.cpp.

References FORM_DoDocumentAAction(), and form_handle().

Referenced by TearDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClosePDFFileForWrite()

void EmbedderTest::ClosePDFFileForWrite ( )
protected

Definition at line 886 of file embedder_test.cpp.

◆ CloseSavedDocument()

void EmbedderTest::CloseSavedDocument ( )
protected

Definition at line 705 of file embedder_test.cpp.

Referenced by VerifySavedDocument(), CPDFSecurityHandlerEmbedderTest::VerifySavedHelloWorldDocumentWithPassword(), and CPDFSecurityHandlerEmbedderTest::VerifySavedModifiedHelloWorldDocumentWithPassword().

+ Here is the caller graph for this function:

◆ CloseSavedPage()

void EmbedderTest::CloseSavedPage ( FPDF_PAGE page)
protected

Definition at line 728 of file embedder_test.cpp.

References FORM_DoPageAAction(), FORM_OnBeforeClosePage(), FPDF_ClosePage(), and saved_form_handle().

Referenced by VerifySavedDocument(), CPDFSecurityHandlerEmbedderTest::VerifySavedHelloWorldDocumentWithPassword(), and CPDFSecurityHandlerEmbedderTest::VerifySavedModifiedHelloWorldDocumentWithPassword().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CompareBitmap()

void EmbedderTest::CompareBitmap ( FPDF_BITMAP bitmap,
int expected_width,
int expected_height,
const char * expected_md5sum )
staticprotected

Definition at line 807 of file embedder_test.cpp.

References FPDFBitmap_GetHeight(), FPDFBitmap_GetStride(), FPDFBitmap_GetWidth(), EmbedderTestEnvironment::GetInstance(), and EmbedderTestEnvironment::write_pngs().

Referenced by FPDFViewEmbedderTest::TestRenderPageBitmapWithFlags(), FPDFViewEmbedderTest::TestRenderPageBitmapWithMatrix(), FPDFProgressiveRenderEmbedderTest::VerifyRenderingWithColorScheme(), and VerifySavedRendering().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateAvail()

void EmbedderTest::CreateAvail ( FX_FILEAVAIL * file_avail,
FPDF_FILEACCESS * file )

Definition at line 769 of file embedder_test.cpp.

◆ CreateEmptyDocument()

void EmbedderTest::CreateEmptyDocument ( )

Definition at line 291 of file embedder_test.cpp.

References CreateEmptyDocumentWithoutFormFillEnvironment().

+ Here is the call graph for this function:

◆ CreateEmptyDocumentWithoutFormFillEnvironment()

void EmbedderTest::CreateEmptyDocumentWithoutFormFillEnvironment ( )

Definition at line 297 of file embedder_test.cpp.

Referenced by CreateEmptyDocument(), and FPDFEditEmbedderTest::CreateNewDocument().

+ Here is the caller graph for this function:

◆ document()

FPDF_DOCUMENT EmbedderTest::document ( ) const
inline

Definition at line 107 of file embedder_test.h.

Referenced by FPDFEditEmbedderTest::CreateNewDocument(), GetFirstPageNum(), GetPageCount(), XFAJSEmbedderTest::GetXFADocument(), CPDFSecurityHandlerEmbedderTest::RemoveTrailerIdFromDocument(), TearDown(), and FPDFProgressiveRenderEmbedderTest::VerifyRenderingWithColorScheme().

+ Here is the caller graph for this function:

◆ DoOpenActions()

void EmbedderTest::DoOpenActions ( )

Definition at line 489 of file embedder_test.cpp.

References FORM_DoDocumentJSAction(), FORM_DoDocumentOpenAction(), and form_handle().

+ Here is the call graph for this function:

◆ form_handle()

FPDF_FORMHANDLE EmbedderTest::form_handle ( ) const
inline

Definition at line 109 of file embedder_test.h.

Referenced by FPDFFormFillInteractiveEmbedderTest::CheckCanRedo(), FPDFFormFillInteractiveEmbedderTest::CheckCanUndo(), FPDFFormFillInteractiveEmbedderTest::CheckFocusedFieldText(), FPDFFormFillInteractiveEmbedderTest::CheckIsIndexSelected(), FPDFFormFillInteractiveEmbedderTest::CheckSelection(), FPDFFormFillInteractiveEmbedderTest::ClickOnFormFieldAtPoint(), CloseDocument(), CPWLComboBoxEmbedderTest::CreateAndInitializeFormComboboxPDF(), CPWLEditEmbedderTest::CreateAndInitializeFormPDF(), CPWLSpecialButtonEmbedderTest::CreateAndInitializeFormPDF(), DoOpenActions(), FPDFFormFillInteractiveEmbedderTest::DoubleClickOnFormFieldAtPoint(), FPDFFormFillInteractiveEmbedderTest::FocusOnPoint(), FPDFFormFillListBoxFormEmbedderTest::FocusOnPoint(), FPDFFormFillInteractiveEmbedderTest::GetFormTypeAtPoint(), FPDFFormFillInteractiveEmbedderTest::PerformRedo(), FPDFFormFillInteractiveEmbedderTest::PerformUndo(), RenderLoadedPageWithFlags(), FPDFFormFillInteractiveEmbedderTest::SelectAllTextAtPoint(), FPDFFormFillInteractiveEmbedderTest::SelectTextWithKeyboard(), FPDFFormFillInteractiveEmbedderTest::SelectTextWithMouse(), FPDFFormFillActionUriTest::SetFocusOnNthAnnot(), FPDFFormFillInteractiveEmbedderTest::SetIndexSelectedShouldFail(), FPDFFormFillInteractiveEmbedderTest::SetIndexSelectedShouldSucceed(), CPDFSDK_BAAnnotTest::SetUpBAAnnot(), and FPDFFormFillInteractiveEmbedderTest::TypeTextIntoTextField().

+ Here is the caller graph for this function:

◆ GetBlockFromString()

int EmbedderTest::GetBlockFromString ( void * param,
unsigned long pos,
unsigned char * buf,
unsigned long size )
staticprotected

Definition at line 845 of file embedder_test.cpp.

Referenced by OpenSavedDocumentWithPassword().

+ Here is the caller graph for this function:

◆ GetDelegate()

Delegate * EmbedderTest::GetDelegate ( )
inline

Definition at line 97 of file embedder_test.h.

◆ GetFirstPageNum()

int EmbedderTest::GetFirstPageNum ( )

Definition at line 495 of file embedder_test.cpp.

References document(), and FPDFAvail_GetFirstPageNum().

+ Here is the call graph for this function:

◆ GetPageCount()

int EmbedderTest::GetPageCount ( )

Definition at line 502 of file embedder_test.cpp.

References document(), and FPDF_GetPageCount().

+ Here is the call graph for this function:

◆ GetString()

const std::string & EmbedderTest::GetString ( ) const
inlineprotected

Definition at line 246 of file embedder_test.h.

◆ HashBitmap()

std::string EmbedderTest::HashBitmap ( FPDF_BITMAP bitmap)
staticprotected

Definition at line 783 of file embedder_test.cpp.

References CRYPT_MD5Finish(), CRYPT_MD5Start(), FPDFBitmap_GetBuffer(), FPDFBitmap_GetHeight(), FPDFBitmap_GetStride(), and FPDFBitmap_GetWidth().

+ Here is the call graph for this function:

◆ LoadPage()

◆ LoadPageNoEvents()

FPDF_PAGE EmbedderTest::LoadPageNoEvents ( int page_number)

Definition at line 514 of file embedder_test.cpp.

◆ LoadSavedPage()

FPDF_PAGE EmbedderTest::LoadSavedPage ( int page_number)
protected

Definition at line 713 of file embedder_test.cpp.

References FORM_DoPageAAction(), FORM_OnAfterLoadPage(), FPDF_LoadPage(), saved_document(), and saved_form_handle().

Referenced by VerifySavedDocument(), CPDFSecurityHandlerEmbedderTest::VerifySavedHelloWorldDocumentWithPassword(), and CPDFSecurityHandlerEmbedderTest::VerifySavedModifiedHelloWorldDocumentWithPassword().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenDocument()

bool EmbedderTest::OpenDocument ( const std::string & filename)

Definition at line 302 of file embedder_test.cpp.

References kDefaultLinearize, and kEnableJavaScript.

Referenced by CPWLComboBoxEmbedderTest::CreateAndInitializeFormComboboxPDF(), CPWLSpecialButtonEmbedderTest::CreateAndInitializeFormPDF(), FPDFFormFillActionUriTest::SetUp(), FPDFFormFillInteractiveEmbedderTest::SetUp(), and CPDFSDK_BAAnnotTest::SetUpBAAnnot().

+ Here is the caller graph for this function:

◆ OpenDocumentHelper()

bool EmbedderTest::OpenDocumentHelper ( const char * password,
LinearizeOption linearize_option,
JavaScriptOption javascript_option,
FakeFileAccess * network_simulator,
ScopedFPDFDocument * document,
ScopedFPDFAvail * avail,
ScopedFPDFFormHandle * form_handle )
protected

◆ OpenDocumentLinearized()

bool EmbedderTest::OpenDocumentLinearized ( const std::string & filename)

Definition at line 308 of file embedder_test.cpp.

References kEnableJavaScript, and kMustLinearize.

◆ OpenDocumentWithOptions()

bool EmbedderTest::OpenDocumentWithOptions ( const std::string & filename,
const char * password,
LinearizeOption linearize_option,
JavaScriptOption javascript_option )
virtual

Reimplemented in XFAJSEmbedderTest.

Definition at line 327 of file embedder_test.cpp.

References TestLoader::GetBlock().

+ Here is the call graph for this function:

◆ OpenDocumentWithoutJavaScript()

bool EmbedderTest::OpenDocumentWithoutJavaScript ( const std::string & filename)

Definition at line 321 of file embedder_test.cpp.

References kDefaultLinearize, and kDisableJavaScript.

◆ OpenDocumentWithPassword()

bool EmbedderTest::OpenDocumentWithPassword ( const std::string & filename,
const char * password )

Definition at line 314 of file embedder_test.cpp.

References kDefaultLinearize, and kEnableJavaScript.

◆ OpenPDFFileForWrite()

void EmbedderTest::OpenPDFFileForWrite ( const std::string & filename)
protected

Definition at line 882 of file embedder_test.cpp.

◆ OpenSavedDocument()

FPDF_DOCUMENT EmbedderTest::OpenSavedDocument ( )
protected

Definition at line 666 of file embedder_test.cpp.

References OpenSavedDocumentWithPassword().

Referenced by VerifySavedDocument().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OpenSavedDocumentWithPassword()

FPDF_DOCUMENT EmbedderTest::OpenSavedDocumentWithPassword ( const char * password)
protected

Definition at line 685 of file embedder_test.cpp.

References GetBlockFromString(), and saved_document().

Referenced by OpenSavedDocument(), CPDFSecurityHandlerEmbedderTest::VerifySavedHelloWorldDocumentWithPassword(), and CPDFSecurityHandlerEmbedderTest::VerifySavedModifiedHelloWorldDocumentWithPassword().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderLoadedPage()

ScopedFPDFBitmap EmbedderTest::RenderLoadedPage ( FPDF_PAGE page)

Definition at line 561 of file embedder_test.cpp.

◆ RenderLoadedPageWithFlags()

ScopedFPDFBitmap EmbedderTest::RenderLoadedPageWithFlags ( FPDF_PAGE page,
int flags )

Definition at line 565 of file embedder_test.cpp.

References form_handle().

+ Here is the call graph for this function:

◆ RenderPage()

ScopedFPDFBitmap EmbedderTest::RenderPage ( FPDF_PAGE page)
static

Definition at line 599 of file embedder_test.cpp.

◆ RenderPageWithFlags()

ScopedFPDFBitmap EmbedderTest::RenderPageWithFlags ( FPDF_PAGE page,
FPDF_FORMHANDLE handle,
int flags )
static

Definition at line 584 of file embedder_test.cpp.

References FPDF_GetPageHeightF(), FPDF_GetPageWidthF(), and FPDFPage_HasTransparency().

+ Here is the call graph for this function:

◆ RenderSavedPage()

ScopedFPDFBitmap EmbedderTest::RenderSavedPage ( FPDF_PAGE page)

Definition at line 572 of file embedder_test.cpp.

◆ RenderSavedPageWithFlags()

ScopedFPDFBitmap EmbedderTest::RenderSavedPageWithFlags ( FPDF_PAGE page,
int flags )

Definition at line 576 of file embedder_test.cpp.

References saved_form_handle().

+ Here is the call graph for this function:

◆ saved_document()

FPDF_DOCUMENT EmbedderTest::saved_document ( ) const
inline

Definition at line 108 of file embedder_test.h.

Referenced by LoadSavedPage(), and OpenSavedDocumentWithPassword().

+ Here is the caller graph for this function:

◆ saved_form_handle()

FPDF_FORMHANDLE EmbedderTest::saved_form_handle ( ) const
inline

Definition at line 110 of file embedder_test.h.

Referenced by CloseSavedPage(), LoadSavedPage(), and RenderSavedPageWithFlags().

+ Here is the caller graph for this function:

◆ SetDelegate()

void EmbedderTest::SetDelegate ( Delegate * delegate)
inline

Definition at line 98 of file embedder_test.h.

◆ SetDocumentFromAvail()

void EmbedderTest::SetDocumentFromAvail ( )

Definition at line 765 of file embedder_test.cpp.

◆ SetFormFillInfoVersion()

void EmbedderTest::SetFormFillInfoVersion ( int form_fill_info_version)
inline

Definition at line 102 of file embedder_test.h.

Referenced by FPDFFormFillActionUriTestVersion2::SetUp(), and FPDFFormFillTextFormEmbedderTestVersion2::SetUp().

+ Here is the caller graph for this function:

◆ SetInitialFormFieldHighlight()

void EmbedderTest::SetInitialFormFieldHighlight ( FPDF_FORMHANDLE form)

Definition at line 556 of file embedder_test.cpp.

References FPDF_SetFormFieldHighlightAlpha(), and FPDF_SetFormFieldHighlightColor().

Referenced by SetupFormFillEnvironment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetUp()

void EmbedderTest::SetUp ( )
override

Definition at line 274 of file embedder_test.cpp.

References FSDK_SetUnSpObjProcessHandler(), _UNSUPPORT_INFO::FSDK_UnSupport_Handler, and _UNSUPPORT_INFO::version.

Referenced by CFWLEditEmbedderTest::SetUp(), CFX_WindowsRenderDeviceTest::SetUp(), CPDFSDK_BAAnnotTest::SetUp(), CPWLComboBoxEmbedderTest::SetUp(), CPWLEditEmbedderTest::SetUp(), CPWLSpecialButtonEmbedderTest::SetUp(), ExternalEngineEmbedderTest::SetUp(), FPDFFormFillActionUriTest::SetUp(), FPDFFormFillInteractiveEmbedderTest::SetUp(), and XFAJSEmbedderTest::SetUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetupFormFillEnvironment()

◆ SetWholeFileAvailable()

void EmbedderTest::SetWholeFileAvailable ( )
protected

Definition at line 760 of file embedder_test.cpp.

◆ TearDown()

void EmbedderTest::TearDown ( )
override

Definition at line 282 of file embedder_test.cpp.

References CloseDocument(), and document().

Referenced by CFWLEditEmbedderTest::TearDown(), CFX_WindowsRenderDeviceTest::TearDown(), CPDFSDK_BAAnnotTest::TearDown(), CPWLComboBoxEmbedderTest::TearDown(), CPWLEditEmbedderTest::TearDown(), CPWLSpecialButtonEmbedderTest::TearDown(), ExternalEngineEmbedderTest::TearDown(), FPDFFormFillActionUriTest::TearDown(), FPDFFormFillInteractiveEmbedderTest::TearDown(), FXGETextEmbedderTest::TearDown(), and XFAJSEmbedderTest::TearDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnloadPage()

◆ UnloadPageNoEvents()

void EmbedderTest::UnloadPageNoEvents ( FPDF_PAGE page)

Definition at line 539 of file embedder_test.cpp.

◆ VerifySavedDocument()

void EmbedderTest::VerifySavedDocument ( int width,
int height,
const char * md5 )
protected

Definition at line 752 of file embedder_test.cpp.

References CloseSavedDocument(), CloseSavedPage(), LoadSavedPage(), OpenSavedDocument(), and VerifySavedRendering().

+ Here is the call graph for this function:

◆ VerifySavedRendering()

void EmbedderTest::VerifySavedRendering ( FPDF_PAGE page,
int width,
int height,
const char * md5 )
protected

Definition at line 741 of file embedder_test.cpp.

References CompareBitmap().

Referenced by VerifySavedDocument().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WriteBitmapToPng()

void EmbedderTest::WriteBitmapToPng ( FPDF_BITMAP bitmap,
const std::string & filename )
staticprotected

Definition at line 801 of file embedder_test.cpp.

References BitmapSaver::WriteBitmapToPng().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: