#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) { … }
}
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_F(ScoreLineBreakerTest, FloatRetry) { … }
TEST_F(ScoreLineBreakerTest, Zoom) { … }
TEST_F(ScoreLineBreakerTest, UseCountNotCountedForWrap) { … }
TEST_F(ScoreLineBreakerTest, UseCountNotCountedForBalance) { … }
}