#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/stl_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"
namespace {
class MockDownloadHints final : public FX_DOWNLOADHINTS { … };
class TestAsyncLoader final : public FX_DOWNLOADHINTS, FX_FILEAVAIL { … };
}
class FPDFDataAvailEmbedderTest : public EmbedderTest { … };
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, Bug1324189) { … }
TEST_F(FPDFDataAvailEmbedderTest, Bug1324503) { … }