chromium/third_party/blink/renderer/core/style/position_area_test.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

// Note that we use ExpectedInset to express the expected results
// instead of calling PositionArea::AnchorTop() (etc) directly here,
// because PositionArea::InitializeAnchors may not have happened yet.
UsedInsetsTestCase used_insets_test_cases[] =;

class PositionAreaUsedInsetsTest
    : public testing::Test,
      public testing::WithParamInterface<UsedInsetsTestCase> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(PositionAreaUsedInsetsTest, All) {}

}  // namespace blink