#include "third_party/blink/renderer/core/css/resolver/cascade_priority.h"
#include <gtest/gtest.h>
namespace blink {
namespace {
struct Options { … };
CascadePriority Priority(Options o) { … }
CascadePriority AuthorPriority(uint16_t tree_order, uint32_t position) { … }
CascadePriority ImportantAuthorPriority(uint16_t tree_order,
uint32_t position) { … }
}
TEST(CascadePriorityTest, EncodeOriginImportance) { … }
TEST(CascadePriorityTest, OriginOperators) { … }
TEST(CascadePriorityTest, OriginImportance) { … }
TEST(CascadePriorityTest, IsImportant) { … }
static std::vector<CascadeOrigin> all_origins = …;
TEST(CascadePriorityTest, GetOrigin) { … }
TEST(CascadePriorityTest, HasOrigin) { … }
TEST(CascadePriorityTest, EncodeTreeOrder) { … }
TEST(CascadePriorityTest, TreeOrder) { … }
TEST(CascadePriorityTest, TreeOrderImportant) { … }
TEST(CascadePriorityTest, TreeOrderDifferentOrigin) { … }
TEST(CascadePriorityTest, Position) { … }
TEST(CascadePriorityTest, PositionAndTreeOrder) { … }
TEST(CascadePriorityTest, PositionAndOrigin) { … }
TEST(CascadePriorityTest, Generation) { … }
TEST(CascadePriorityTest, GenerationOverwrite) { … }
TEST(CascadePriorityTest, PositionEncoding) { … }
TEST(CascadePriorityTest, EncodeLayerOrder) { … }
TEST(CascadePriorityTest, LayerOrder) { … }
TEST(CascadePriorityTest, LayerOrderImportant) { … }
TEST(CascadePriorityTest, LayerOrderDifferentOrigin) { … }
TEST(CascadePriorityTest, InlineStyle) { … }
TEST(CascadePriorityTest, TryStyle) { … }
TEST(CascadePriorityTest, TryTacticsStyle) { … }
TEST(CascadePriorityTest, ForLayerComparison) { … }
}