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

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#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)
 

Variables

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

Function Documentation

◆ TEST_F() [1/7]

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/7]

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/7]

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/7]

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/7]

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/7]

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() [7/7]

TEST_F ( FPDFAttachmentEmbedderTest ,
NoAttachmentToExtract  )

Definition at line 99 of file fpdf_attachment_embeddertest.cpp.

Variable Documentation

◆ kChecksumKey

static constexpr char kChecksumKey = "CheckSum"
staticconstexpr

Definition at line 16 of file fpdf_attachment_embeddertest.cpp.

Referenced by TEST_F(), and TEST_F().

◆ kDateKey

static constexpr char kDateKey = "CreationDate"
staticconstexpr

Definition at line 15 of file fpdf_attachment_embeddertest.cpp.

Referenced by TEST_F(), and TEST_F().