#include "third_party/blink/renderer/core/layout/ink_overflow.h"
#include "testing/gmock/include/gmock/gmock.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/testing/task_environment.h"
namespace blink {
namespace {
PhysicalRect FromFloatRound(const gfx::RectF& rect) { … }
ElementsAre;
class InkOverflowTest : public testing::Test { … };
TEST_F(InkOverflowTest, Empty) { … }
#define MIN_LARGE32 …
#define MIN_LARGE64 …
#if UINTPTR_MAX == 0xFFFFFFFF
#define MIN_LARGE …
#elif UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFu
#define MIN_LARGE …
#endif
#define MAX_SMALL …
struct RectData { … } rect_data[] = …;
class RectDataTest : public InkOverflowTest,
public testing::WithParamInterface<RectData> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(RectDataTest, Self) { … }
TEST_P(RectDataTest, Contents) { … }
TEST_P(RectDataTest, Copy) { … }
struct SelfAndContentsData { … } self_and_contents_data[] = …;
class SelfAndContentsDataTest
: public InkOverflowTest,
public testing::WithParamInterface<SelfAndContentsData> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(SelfAndContentsDataTest, SelfAndContents) { … }
}
}