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

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/span_util.h"
#include "public/fpdf_doc.h"
#include "public/fpdfview.h"
#include "testing/embedder_test.h"
#include "testing/fx_string_testhelpers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/range_set.h"
#include "testing/utils/file_util.h"
#include "testing/utils/path_service.h"
#include "third_party/base/numerics/safe_conversions.h"
+ Include dependency graph for fpdf_dataavail_embeddertest.cpp:

Go to the source code of this file.

Classes

class  FPDFDataAvailEmbedderTest
 

Functions

 TEST_F (FPDFDataAvailEmbedderTest, TrailerUnterminated)
 
 TEST_F (FPDFDataAvailEmbedderTest, TrailerAsHexstring)
 
 TEST_F (FPDFDataAvailEmbedderTest, LoadUsingHintTables)
 
 TEST_F (FPDFDataAvailEmbedderTest, CheckFormAvailIfLinearized)
 
 TEST_F (FPDFDataAvailEmbedderTest, DoNotLoadMainCrossRefForFirstPageIfLinearized)
 
 TEST_F (FPDFDataAvailEmbedderTest, LoadSecondPageIfLinearizedWithHints)
 
 TEST_F (FPDFDataAvailEmbedderTest, LoadInfoAfterReceivingWholeDocument)
 
 TEST_F (FPDFDataAvailEmbedderTest, LoadInfoAfterReceivingFirstPage)
 
 TEST_F (FPDFDataAvailEmbedderTest, TryLoadInvalidInfo)
 
 TEST_F (FPDFDataAvailEmbedderTest, TryLoadNonExistsInfo)
 
 TEST_F (FPDFDataAvailEmbedderTest, BadInputsToAPIs)
 
 TEST_F (FPDFDataAvailEmbedderTest, NegativePageIndex)
 
 TEST_F (FPDFDataAvailEmbedderTest, Bug_1324189)
 
 TEST_F (FPDFDataAvailEmbedderTest, Bug_1324503)
 

Function Documentation

◆ TEST_F() [1/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
BadInputsToAPIs  )

Definition at line 396 of file fpdf_dataavail_embeddertest.cpp.

References FPDFAvail_GetDocument(), FPDFAvail_GetFirstPageNum(), FPDFAvail_IsDocAvail(), FPDFAvail_IsFormAvail(), FPDFAvail_IsLinearized(), and FPDFAvail_IsPageAvail().

+ Here is the call graph for this function:

◆ TEST_F() [2/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
Bug_1324189  )

Definition at line 413 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [3/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
Bug_1324503  )

Definition at line 420 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [4/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
CheckFormAvailIfLinearized  )

Definition at line 199 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [5/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
DoNotLoadMainCrossRefForFirstPageIfLinearized  )

Definition at line 219 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [6/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
LoadInfoAfterReceivingFirstPage  )

Definition at line 307 of file fpdf_dataavail_embeddertest.cpp.

References GetPlatformWString().

+ Here is the call graph for this function:

◆ TEST_F() [7/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
LoadInfoAfterReceivingWholeDocument  )

Definition at line 285 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [8/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
LoadSecondPageIfLinearizedWithHints  )

Definition at line 258 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [9/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
LoadUsingHintTables  )

Definition at line 185 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [10/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
NegativePageIndex  )

Definition at line 405 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [11/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
TrailerAsHexstring  )

Definition at line 178 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [12/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
TrailerUnterminated  )

Definition at line 171 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [13/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
TryLoadInvalidInfo  )

Definition at line 336 of file fpdf_dataavail_embeddertest.cpp.

◆ TEST_F() [14/14]

TEST_F ( FPDFDataAvailEmbedderTest ,
TryLoadNonExistsInfo  )

Definition at line 367 of file fpdf_dataavail_embeddertest.cpp.