#include "core/fpdfapi/render/cpdf_docrenderdata.h"
#include <iterator>
#include <memory>
#include <utility>
#include "core/fpdfapi/page/cpdf_transferfunc.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_indirect_object_holder.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fxcrt/data_vector.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ElementsAreArray;
namespace {
constexpr uint8_t kExpectedType0FunctionSamples[] = …;
constexpr uint8_t kExpectedType2FunctionSamples[] = …;
constexpr uint8_t kExpectedType4FunctionSamples[] = …;
RetainPtr<CPDF_Reference> CreateType0FunctionStreamReference(
CPDF_IndirectObjectHolder& holder) { … }
RetainPtr<CPDF_Dictionary> CreateType2FunctionDict() { … }
RetainPtr<CPDF_Reference> CreateType4FunctionStreamReference(
CPDF_IndirectObjectHolder& holder) { … }
RetainPtr<CPDF_Stream> CreateBadType4FunctionStream() { … }
class TestDocRenderData : public CPDF_DocRenderData { … };
TEST(CPDF_DocRenderDataTest, TransferFunctionOne) { … }
TEST(CPDF_DocRenderDataTest, TransferFunctionArray) { … }
TEST(CPDF_DocRenderDataTest, BadTransferFunctions) { … }
}