#include "third_party/blink/renderer/core/layout/exclusions/exclusion_space.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
namespace blink {
namespace {
ElementsAre;
#define TEST_OPPORTUNITY(opp, expected_start_offset, expected_end_offset) …
struct ExclusionSpaceForTesting { … };
LayoutOpportunity CreateLayoutOpportunity(float inline_start,
float block_start,
float inline_end,
float block_end = LayoutUnit::Max()) { … }
TEST(ExclusionSpaceTest, Empty) { … }
TEST(ExclusionSpaceTest, SingleExclusion) { … }
TEST(ExclusionSpaceTest, TwoExclusions) { … }
TEST(ExclusionSpaceTest, SolidEdges) { … }
TEST(ExclusionSpaceTest, OverlappingWithShelf) { … }
TEST(ExclusionSpaceTest, InsertBetweenShelves) { … }
TEST(ExclusionSpaceTest, InitialLetterBasic) { … }
TEST(ExclusionSpaceTest, InitialLetterDirectionRight) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatLeft1) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatLeft2) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatLeft2ClearLeft) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatLeftAndRight) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatLeftAfterBreak) { … }
TEST(ExclusionSpaceTest, InitialLetterFloatRight2) { … }
TEST(ExclusionSpaceTest, ZeroInlineSizeOpportunity) { … }
TEST(ExclusionSpaceTest, NegativeInlineSizeOpportunityLeft) { … }
TEST(ExclusionSpaceTest, NegativeInlineSizeOpportunityRight) { … }
TEST(ExclusionSpaceTest, PreInitialization) { … }
TEST(ExclusionSpaceTest, MergeExclusionSpacesNoPreviousExclusions) { … }
TEST(ExclusionSpaceTest, MergeExclusionSpacesPreviousExclusions) { … }
TEST(ExclusionSpaceTest, MergeExclusionSpacesNoOutputExclusions) { … }
}
}