chromium/third_party/blink/renderer/core/css/properties/css_bitset_test.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "third_party/blink/renderer/core/css/properties/css_bitset.h"

#include <bitset>

#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

namespace {

template <size_t kBits>
std::bitset<kBits> ToStdBitsetUsingHas(const CSSBitsetBase<kBits>& bitset) {}

template <size_t kBits>
std::bitset<kBits> ToStdBitsetUsingIterator(
    const CSSBitsetBase<kBits>& bitset) {}

// Creates a CSSBitsetBase with kBits capacity, sets the specified bits via
// CSSBitsetBase::Set, and then verifies that the correct bits are observed
// via both CSSBitsetBase::Has, and CSSBitsetBase::begin()/end().
template <size_t kBits>
void AssertBitset(const size_t* begin, const size_t* end) {}

template <size_t kBits>
void AssertBitset(std::initializer_list<size_t> bits) {}

}  // namespace

TEST(CSSBitsetTest, BaseBitCount1) {}

TEST(CSSBitsetTest, BaseBitCount63) {}

TEST(CSSBitsetTest, BaseBitCount64) {}

TEST(CSSBitsetTest, BaseBitCount65) {}

TEST(CSSBitsetTest, BaseBitCount127) {}

TEST(CSSBitsetTest, BaseBitCount128) {}

TEST(CSSBitsetTest, BaseBitCount129) {}

TEST(CSSBitsetTest, AllBits) {}

TEST(CSSBitsetTest, NoBits) {}

TEST(CSSBitsetTest, SingleBit) {}

TEST(CSSBitsetTest, Default) {}

TEST(CSSBitsetTest, SetAndHas) {}

TEST(CSSBitsetTest, Or) {}

TEST(CSSBitsetTest, HasAny) {}

TEST(CSSBitsetTest, Reset) {}

TEST(CSSBitsetTest, Iterator) {}

TEST(CSSBitsetTest, Equals) {}

TEST(CSSBitsetTest, Copy) {}

TEST(CSSBitsetTest, InitializerList) {}

}  // namespace blink