#include "third_party/blink/renderer/core/css/css_math_expression_node.h"
#include <algorithm>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_length_resolver.h"
#include "third_party/blink/renderer/core/css/css_math_operator.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/geometry/calculation_expression_node.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
void PrintTo(const CSSLengthArray& length_array, ::std::ostream* os) { … }
namespace {
void TestAccumulatePixelsAndPercent(
const CSSToLengthConversionData& conversion_data,
CSSMathExpressionNode* expression,
float expected_pixels,
float expected_percent) { … }
bool AccumulateLengthArray(String text, CSSLengthArray& length_array) { … }
CSSLengthArray& SetLengthArray(String text, CSSLengthArray& length_array) { … }
TEST(CSSCalculationValue, AccumulatePixelsAndPercent) { … }
TEST(CSSCalculationValue, RefCount) { … }
TEST(CSSCalculationValue, AddToLengthUnitValues) { … }
TEST(CSSCalculationValue, CSSLengthArrayUnits) { … }
Flag;
Flags;
TEST(CSSMathExpressionNode, TestParseDeeplyNestedExpression) { … }
TEST(CSSMathExpressionNode, TestSteppedValueFunctions) { … }
TEST(CSSMathExpressionNode, TestSteppedValueFunctionsToCalculationExpression) { … }
TEST(CSSMathExpressionNode, TestSteppedValueFunctionsSerialization) { … }
TEST(CSSMathExpressionNode, TestExponentialFunctions) { … }
TEST(CSSMathExpressionNode, TestExponentialFunctionsSerialization) { … }
TEST(CSSMathExpressionNode, TestExponentialFunctionsToCalculationExpression) { … }
TEST(CSSMathExpressionNode, IdentifierLiteralConversion) { … }
TEST(CSSMathExpressionNode, TestProgressNotation) { … }
TEST(CSSMathExpressionNode, TestProgressNotationComplex) { … }
TEST(CSSMathExpressionNode, TestInvalidProgressNotation) { … }
TEST(CSSMathExpressionNode, TestFunctionsWithNumberReturn) { … }
TEST(CSSMathExpressionNode, TestColorChannelExpressionWithSubstitution) { … }
TEST(CSSMathExpressionNode, TestColorChannelExpressionWithInvalidChannelName) { … }
TEST(CSSMathExpressionNode, TestColorChannelExpressionWithoutSubstitution) { … }
}
}