chromium/third_party/blink/renderer/core/css/try_tactic_transform_test.cc

// Copyright 2024 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/css/try_tactic_transform.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

class TryTacticTransformTest : public testing::Test {};

constexpr TryTacticList Tactics(TryTactic t0,
                                TryTactic t1 = TryTactic::kNone,
                                TryTactic t2 = TryTactic::kNone) {}

enum LogicalSide {};

LogicalSides;

bool operator==(const LogicalSides& a, const LogicalSides& b) {}

LogicalSides InitialLogicalSides() {}

LogicalSides TransformLogicalSides(TryTacticList tactic_list) {}

TEST_F(TryTacticTransformTest, Equality) {}

// First test that tactics that overlap produce the same transforms:
//
// (See TryTacticTransform).
//
// block                  (1)
// inline                 (2)
// block inline           (3)
// start                  (4)
// block start            (5)
// inline start           (6)
// block inline start     (7)
//
// inline block           (=>3)
// block start inline     (=>4)
// inline start block     (=>4)
// start inline           (=>5)
// start block            (=>6)
// inline block start     (=>7)
// start block inline     (=>7)
// start inline block     (=>7)

// (3)
TEST_F(TryTacticTransformTest, BlockInlineEquality) {}

// (4)
TEST_F(TryTacticTransformTest, StartEquality) {}

// (5)
TEST_F(TryTacticTransformTest, BlockStartEquality) {}

// (6)
TEST_F(TryTacticTransformTest, InlineStartEquality) {}

// (7)
TEST_F(TryTacticTransformTest, BlockInlineStartEquality) {}

// Test Transform:

// (0)
TEST_F(TryTacticTransformTest, Transform_None) {}

// (1)
TEST_F(TryTacticTransformTest, Transform_Block) {}

// (2)
TEST_F(TryTacticTransformTest, Transform_Inline) {}

// (3)
TEST_F(TryTacticTransformTest, Transform_Block_Inline) {}

// (4)
TEST_F(TryTacticTransformTest, Transform_Start) {}

// (5)
TEST_F(TryTacticTransformTest, Transform_Block_Start) {}

// (6)
TEST_F(TryTacticTransformTest, Transform_Inline_Start) {}

// (7)
TEST_F(TryTacticTransformTest, Transform_Block_Inline_Start) {}

// Inverse

// (0)
TEST_F(TryTacticTransformTest, Inverse_None) {}

// (1)
TEST_F(TryTacticTransformTest, Inverse_Block) {}

// (2)
TEST_F(TryTacticTransformTest, Inverse_Inline) {}

// (3)
TEST_F(TryTacticTransformTest, Inverse_Block_Inline) {}

// (4)
TEST_F(TryTacticTransformTest, Inverse_Start) {}

// (5)
TEST_F(TryTacticTransformTest, Inverse_Block_Start) {}

// (6)
TEST_F(TryTacticTransformTest, Inverse_Inline_Start) {}

// (7)
TEST_F(TryTacticTransformTest, Inverse_Block_Inline_Start) {}

// CacheIndex
TEST_F(TryTacticTransformTest, NoTacticsCacheIndex) {}

}  // namespace blink