#include "third_party/blink/renderer/core/layout/geometry/physical_rect.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/platform/geometry/infinite_int_rect.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace blink {
namespace {
TEST(PhysicalRectTest, AddOffset) { … }
struct PhysicalOffsetRectUniteTestData { … } physical_offset_rect_unite_test_data[] = …;
std::ostream& operator<<(std::ostream& os,
const PhysicalOffsetRectUniteTestData& data) { … }
class PhysicalRectUniteTest
: public testing::Test,
public testing::WithParamInterface<PhysicalOffsetRectUniteTestData> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PhysicalRectUniteTest, Data) { … }
TEST(PhysicalRectTest, SquaredDistanceTo) { … }
TEST(PhysicalRectTest, InclusiveIntersect) { … }
TEST(PhysicalRectTest, IntersectsInclusively) { … }
TEST(PhysicalRectTest, ToEnclosingRect) { … }
TEST(PhysicalRectTest, EdgesOnPixelBoundaries) { … }
TEST(PhysicalRectTest, ExpandEdgesToPixelBoundaries) { … }
TEST(PhysicalRectTest, InfiniteIntRect) { … }
}
}