chromium/third_party/blink/renderer/core/layout/inline/score_line_breaker_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/layout/inline/score_line_breaker.h"

#include "third_party/blink/renderer/core/layout/constraint_space_builder.h"
#include "third_party/blink/renderer/core/layout/inline/inline_cursor.h"
#include "third_party/blink/renderer/core/layout/inline/inline_node.h"
#include "third_party/blink/renderer/core/layout/inline/leading_floats.h"
#include "third_party/blink/renderer/core/layout/inline/line_break_point.h"
#include "third_party/blink/renderer/core/layout/inline/line_info_list.h"
#include "third_party/blink/renderer/core/layout/inline/line_widths.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"

namespace blink {

namespace {

LayoutUnit FragmentWidth(const InlineNode& node) {}

void TestLinesAreContiguous(const LineInfoList& line_info_list) {}

}  // namespace

class ScoreLineBreakerTest : public RenderingTest {};

TEST_F(ScoreLineBreakerTest, LastLines) {}

TEST_F(ScoreLineBreakerTest, BalanceMaxLinesExceeded) {}

class BlockInInlineTest : public ScoreLineBreakerTest,
                          public testing::WithParamInterface<int> {};
INSTANTIATE_TEST_SUITE_P();

TEST_P(BlockInInlineTest, BeforeAfter) {}

TEST_F(ScoreLineBreakerTest, ForcedBreak) {}

struct DisabledByLineBreakerData {} disabled_by_line_breaker_data[] =;

class DisabledByLineBreakerTest
    : public ScoreLineBreakerTest,
      public testing::WithParamInterface<DisabledByLineBreakerData> {};

INSTANTIATE_TEST_SUITE_P();

TEST_P(DisabledByLineBreakerTest, Data) {}

// Test when `InlineLayoutAlgorithm::Layout` runs `LineBreaker` twice for
// the same line, to retry line breaking due to float placements.
TEST_F(ScoreLineBreakerTest, FloatRetry) {}

TEST_F(ScoreLineBreakerTest, Zoom) {}

TEST_F(ScoreLineBreakerTest, UseCountNotCountedForWrap) {}

TEST_F(ScoreLineBreakerTest, UseCountNotCountedForBalance) {}

}  // namespace blink