chromium/third_party/pdfium/core/fxge/dib/cfx_scanlinecompositor_unittest.cpp

// Copyright 2024 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "core/fxge/dib/cfx_scanlinecompositor.h"

#include <stdint.h>

#include <array>

#include "core/fxcrt/span.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxge/dib/fx_dib.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

ElementsAreArray;

namespace {

constexpr FX_BGRA_STRUCT<uint8_t> kDestScan[] =;
constexpr FX_BGRA_STRUCT<uint8_t> kSrcScan1[] =;
constexpr FX_BGRA_STRUCT<uint8_t> kSrcScan2[] =;
constexpr FX_BGRA_STRUCT<uint8_t> kSrcScan3[] =;

void RunTest(CFX_ScanlineCompositor& compositor,
             pdfium::span<const FX_BGRA_STRUCT<uint8_t>> src_span,
             pdfium::span<const FX_BGRA_STRUCT<uint8_t>> expectations) {}

#if defined(PDF_USE_SKIA)
void PreMultiplyScanLine(pdfium::span<FX_BGRA_STRUCT<uint8_t>> scanline) {}

void UnPreMultiplyScanLine(pdfium::span<FX_BGRA_STRUCT<uint8_t>> scanline) {}

void RunPreMultiplyTest(
    CFX_ScanlineCompositor& compositor,
    pdfium::span<const FX_BGRA_STRUCT<uint8_t>> src_span,
    pdfium::span<const FX_BGRA_STRUCT<uint8_t>> expectations) {}
#endif  // defined(PDF_USE_SKIA)

}  // namespace

inline bool operator==(const FX_BGRA_STRUCT<uint8_t>& lhs,
                       const FX_BGRA_STRUCT<uint8_t>& rhs) {}

TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraNormal) {}

TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraDarken) {}

TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraHue) {}

#if defined(PDF_USE_SKIA)
TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraPremulNormal) {}

TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraPremulDarken) {}

TEST(ScanlineCompositorTest, CompositeRgbBitmapLineBgraPremulHue) {}
#endif  // defined(PDF_USE_SKIA)