chromium/third_party/blink/renderer/core/css/parser/find_length_of_declaration_list_test.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/cpu.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/parser/find_length_of_declaration_list-inl.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

#if defined(__SSE2__) || defined(__ARM_NEON__)

enum class FindLengthInstructionSet {};

class FindLengthOfDeclarationListTest
    : public testing::TestWithParam<FindLengthInstructionSet> {};

#ifdef __SSE2__
INSTANTIATE_TEST_SUITE_P();
#else
INSTANTIATE_TEST_SUITE_P(WithBaseOnly,
                         FindLengthOfDeclarationListTest,
                         testing::Values(FindLengthInstructionSet::BASE));
#endif

bool FindLengthOfDeclarationListTest::BlockAccepted(const String& str) {}

TEST_P(FindLengthOfDeclarationListTest, Basic) {}

TEST_P(FindLengthOfDeclarationListTest, Variable) {}

TEST_P(FindLengthOfDeclarationListTest, UnbalancedVariable) {}

TEST_P(FindLengthOfDeclarationListTest, NoSubBlocksAccepted) {}

TEST_P(FindLengthOfDeclarationListTest, NoCommentsAccepted) {}

TEST_P(FindLengthOfDeclarationListTest, String) {}

TEST_P(FindLengthOfDeclarationListTest, IgnoringDangerousAfterBlock) {}

TEST_P(FindLengthOfDeclarationListTest, NonASCII) {}

#endif  // SIMD

}  // namespace blink