#include "pdf/draw_utils/page_boundary_intersect.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/test/geometry_util.h"
namespace chrome_pdf {
namespace {
constexpr gfx::Rect kRect(5, 10, 20, 30);
constexpr gfx::PointF kInsidePoint(15, 20);
constexpr gfx::PointF kTopLeftPoint(5, 10);
constexpr gfx::PointF kTopPoint(15, 10);
constexpr gfx::PointF kTopRightPoint(24.9999f, 10);
constexpr gfx::PointF kRightPoint(24.9999f, 30);
constexpr gfx::PointF kBottomRightPoint(24.9999f, 39.9999f);
constexpr gfx::PointF kBottomPoint(20, 39.9999f);
constexpr gfx::PointF kBottomLeftPoint(5, 39.9999f);
constexpr gfx::PointF kLeftPoint(5, 30);
constexpr float kTolerance = …;
}
TEST(PageBoundaryIntersectPoint, Left) { … }
TEST(PageBoundaryIntersectPoint, Top) { … }
TEST(PageBoundaryIntersectPoint, Right) { … }
TEST(PageBoundaryIntersectPoint, Bottom) { … }
TEST(PageBoundaryIntersectPoint, BorderGoingOutwards) { … }
TEST(PageBoundaryIntersectPoint, BorderGoingAcrossPage) { … }
TEST(PageBoundaryIntersectPoint, BorderTopBottomEdge) { … }
TEST(PageBoundaryIntersectPoint, BorderLeftRightEdge) { … }
}