chromium/third_party/blink/renderer/core/css/media_query_exp_test.cc

// Copyright 2021 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/css/media_query_exp.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

namespace {

const CSSNumericLiteralValue& WrapDouble(
    double value,
    CSSPrimitiveValue::UnitType unit_type =
        CSSPrimitiveValue::UnitType::kNumber) {}

MediaQueryExpValue IdentValue(CSSValueID id) {}

MediaQueryExpValue RatioValue(unsigned numerator, unsigned denominator) {}

MediaQueryExpValue PxValue(double value) {}

MediaQueryExpValue EmValue(double value) {}

MediaQueryExpValue RemValue(double value) {}

MediaQueryExpValue DvhValue(double value) {}

MediaQueryExpValue SvhValue(double value) {}

MediaQueryExpValue LvhValue(double value) {}

MediaQueryExpValue VhValue(double value) {}

MediaQueryExpValue CqhValue(double value) {}

MediaQueryExpValue CssValue(const CSSPrimitiveValue& value) {}

MediaQueryExpValue DppxValue(double value) {}

MediaQueryExpValue CalcValue(const String& syntax, const String& value) {}

MediaQueryExpValue NumericLiteralValue(double value,
                                       CSSPrimitiveValue::UnitType unit) {}

MediaQueryExpValue InvalidValue() {}

MediaQueryExpComparison NoCmp(MediaQueryExpValue v) {}

MediaQueryExpComparison LtCmp(MediaQueryExpValue v) {}

MediaQueryExpComparison LeCmp(MediaQueryExpValue v) {}

MediaQueryExpComparison GtCmp(MediaQueryExpValue v) {}

MediaQueryExpComparison GeCmp(MediaQueryExpValue v) {}

MediaQueryExpComparison EqCmp(MediaQueryExpValue v) {}

MediaQueryExp LeftExp(String feature, MediaQueryExpComparison cmp) {}

MediaQueryExp RightExp(String feature, MediaQueryExpComparison cmp) {}

MediaQueryExp PairExp(String feature,
                      MediaQueryExpComparison left,
                      MediaQueryExpComparison right) {}

const MediaQueryExpNode* FeatureNode(MediaQueryExp expr) {}

const MediaQueryExpNode* EnclosedFeatureNode(MediaQueryExp expr) {}

const MediaQueryExpNode* NestedNode(const MediaQueryExpNode* child) {}

const MediaQueryExpNode* FunctionNode(const MediaQueryExpNode* child,
                                      const AtomicString& name) {}

const MediaQueryExpNode* NotNode(const MediaQueryExpNode* operand) {}

const MediaQueryExpNode* AndNode(const MediaQueryExpNode* left,
                                 const MediaQueryExpNode* right) {}

const MediaQueryExpNode* OrNode(const MediaQueryExpNode* left,
                                const MediaQueryExpNode* right) {}

const MediaQueryExpNode* UnknownNode(String string) {}

}  // namespace

TEST(MediaQueryExpTest, ValuesType) {}

TEST(MediaQueryExpTest, ValueEquality) {}

TEST(MediaQueryExpTest, ComparisonEquality) {}

TEST(MediaQueryExpTest, BoundaryEquality) {}

TEST(MediaQueryExpTest, ExpEquality) {}

TEST(MediaQueryExpTest, Serialize) {}

TEST(MediaQueryExpTest, SerializeNode) {}

TEST(MediaQueryExpTest, CollectExpressions) {}

TEST(MediaQueryExpTest, UnitFlags) {}

TEST(MediaQueryExpTest, UtilsNullptrHandling) {}

TEST(MediaQueryExpTest, ResolutionChecks) {}

}  // namespace blink