#include "core/fxge/dib/cfx_dibbase.h"
#include "core/fxcrt/fx_coordinates.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
struct Input { … };
struct Output { … };
void RunOverlapRectTest(const CFX_DIBitmap* bitmap,
const Input& input,
const Output* expected_output) { … }
}
TEST(CFX_DIBBaseTest, GetOverlapRectTrivialOverlap) { … }
TEST(CFX_DIBBaseTest, GetOverlapRectOverlapNoLimit) { … }
TEST(CFX_DIBBaseTest, GetOverlapRectOverlapLimitedBySource) { … }
TEST(CFX_DIBBaseTest, GetOverlapRectOverlapLimitedByDestination) { … }
TEST(CFX_DIBBaseTest, GetOverlapRectBadInputs) { … }