#include "third_party/blink/renderer/core/style/position_area.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/text/writing_direction_mode.h"
namespace blink {
const WritingDirectionMode vertical_lr_rtl(WritingMode::kVerticalLr,
TextDirection::kRtl);
const WritingDirectionMode vertical_rl_ltr(WritingMode::kVerticalRl,
TextDirection::kLtr);
const WritingDirectionMode horizontal_tb_ltr(WritingMode::kHorizontalTb,
TextDirection::kLtr);
const WritingDirectionMode horizontal_tb_rtl(WritingMode::kHorizontalTb,
TextDirection::kRtl);
struct ToPhysicalTestCase { … };
ToPhysicalTestCase to_physical_test_cases[] = …;
class PositionAreaToPhysicalTest
: public testing::Test,
public testing::WithParamInterface<ToPhysicalTestCase> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PositionAreaToPhysicalTest, All) { … }
enum class ExpectedInset { … };
struct UsedInsetsTestCase { … };
namespace {
std::optional<AnchorQuery> ToAnchorQuery(ExpectedInset inset) { … }
}
UsedInsetsTestCase used_insets_test_cases[] = …;
class PositionAreaUsedInsetsTest
: public testing::Test,
public testing::WithParamInterface<UsedInsetsTestCase> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PositionAreaUsedInsetsTest, All) { … }
}