chromium/third_party/blink/renderer/core/css/try_value_flips_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_value_flips.h"

#include "third_party/blink/renderer/core/css/css_flip_revert_value.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/css/try_tactic_transform.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/text/writing_direction_mode.h"

namespace blink {

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

class TryValueFlipsTest : public PageTestBase {};

TEST_F(TryValueFlipsTest, None) {}

// Flips without kFlipStart:

TEST_F(TryValueFlipsTest, FlipBlock) {}

TEST_F(TryValueFlipsTest, FlipInline) {}

TEST_F(TryValueFlipsTest, FlipBlockInline) {}

TEST_F(TryValueFlipsTest, FlipInlineBlock) {}

// Flips with kFlipStart:

TEST_F(TryValueFlipsTest, FlipStart) {}

TEST_F(TryValueFlipsTest, FlipBlockStartInline) {}

TEST_F(TryValueFlipsTest, FlipInlineStartBlock) {}

TEST_F(TryValueFlipsTest, FlipStartBlock) {}

TEST_F(TryValueFlipsTest, FlipInlineStart) {}

TEST_F(TryValueFlipsTest, FlipStartInline) {}

TEST_F(TryValueFlipsTest, FlipBlockStart) {}

TEST_F(TryValueFlipsTest, FlipStartBlockInline) {}

TEST_F(TryValueFlipsTest, FlipStartInlineBlock) {}

TEST_F(TryValueFlipsTest, FlipInlineBlockStart) {}

TEST_F(TryValueFlipsTest, FlipBlockInlineStart) {}

namespace {

struct Declaration {};

Declaration ParseDeclaration(String string) {}

}  // namespace

struct FlipValueTestData {};

FlipValueTestData flip_value_test_data[] =;

class FlipValueTest : public PageTestBase,
                      public testing::WithParamInterface<FlipValueTestData> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(FlipValueTest, All) {}

struct NoFlipValueTestData {};

// These cases should cause TryValueFlips::FlipValue to return
// the incoming CSSValue instance.
NoFlipValueTestData no_flip_value_test_data[] =;

class NoFlipValueTest
    : public PageTestBase,
      public testing::WithParamInterface<NoFlipValueTestData> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(NoFlipValueTest, All) {}

}  // namespace blink