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
fpdf_attachment_embeddertest.cpp File Reference

(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)

#include <string>
#include <vector>
#include "public/fpdf_attachment.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/utils/hash.h"
Include dependency graph for fpdf_attachment_embeddertest.cpp:

Go to the source code of this file.

Classes

class  FPDFAttachmentEmbedderTest

Functions

 TEST_F (FPDFAttachmentEmbedderTest, ExtractAttachments)
 TEST_F (FPDFAttachmentEmbedderTest, NoAttachmentToExtract)
 TEST_F (FPDFAttachmentEmbedderTest, InvalidAttachmentData)
 TEST_F (FPDFAttachmentEmbedderTest, AddAttachments)
 TEST_F (FPDFAttachmentEmbedderTest, AddAttachmentsWithParams)
 TEST_F (FPDFAttachmentEmbedderTest, AddAttachmentsToFileWithNoAttachments)
 TEST_F (FPDFAttachmentEmbedderTest, DeleteAttachment)
 TEST_F (FPDFAttachmentEmbedderTest, GetStringValueForChecksumNotString)
 TEST_F (FPDFAttachmentEmbedderTest, GetStringValueForNotString)

Variables

static constexpr char kDateKey [] = "CreationDate"
static constexpr char kChecksumKey [] = "CheckSum"

Function Documentation

◆ TEST_F() [1/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
AddAttachments  )

Definition at line 133 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetFile(), and FPDFAttachment_GetName().

Here is the call graph for this function:

◆ TEST_F() [2/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
AddAttachmentsToFileWithNoAttachments  )

Definition at line 279 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetFile(), and FPDFAttachment_GetName().

Here is the call graph for this function:

◆ TEST_F() [3/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
AddAttachmentsWithParams  )

Definition at line 202 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetFile(), FPDFAttachment_GetName(), FPDFAttachment_GetStringValue(), kChecksumKey, and kDateKey.

Here is the call graph for this function:

◆ TEST_F() [4/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
DeleteAttachment  )

Definition at line 342 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetName().

Here is the call graph for this function:

◆ TEST_F() [5/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
ExtractAttachments  )

Definition at line 20 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetFile(), FPDFAttachment_GetName(), FPDFAttachment_GetStringValue(), FPDFAttachment_GetValueType(), FPDFAttachment_HasKey(), kChecksumKey, and kDateKey.

Here is the call graph for this function:

◆ TEST_F() [6/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
GetStringValueForChecksumNotString  )

Definition at line 370 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetStringValue(), and kChecksumKey.

Here is the call graph for this function:

◆ TEST_F() [7/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
GetStringValueForNotString  )

Definition at line 389 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetStringValue(), and kChecksumKey.

Here is the call graph for this function:

◆ TEST_F() [8/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
InvalidAttachmentData  )

Definition at line 109 of file fpdf_attachment_embeddertest.cpp.

References FPDFAttachment_GetFile(), and FPDFAttachment_GetName().

Here is the call graph for this function:

◆ TEST_F() [9/9]

TEST_F ( FPDFAttachmentEmbedderTest ,
NoAttachmentToExtract  )

Definition at line 99 of file fpdf_attachment_embeddertest.cpp.

Variable Documentation

◆ kChecksumKey

constexpr char kChecksumKey = "CheckSum"
staticconstexpr

Definition at line 16 of file fpdf_attachment_embeddertest.cpp.

Referenced by TEST_F(), TEST_F(), TEST_F(), and TEST_F().

◆ kDateKey

constexpr char kDateKey = "CreationDate"
staticconstexpr

Definition at line 15 of file fpdf_attachment_embeddertest.cpp.

Referenced by TEST_F(), and TEST_F().