chromium/base/containers/enum_set_unittest.cc

// Copyright 2012 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/containers/enum_set.h"

#include <stddef.h>

#include <optional>

#include "base/containers/to_vector.h"
#include "base/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest-death-test.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {
namespace {

enum class TestEnum {};
TestEnumSet;

enum class TestEnumExtreme {};
TestEnumExtremeSet;

class EnumSetTest : public ::testing::Test {};
class EnumSetDeathTest : public ::testing::Test {};

TEST_F(EnumSetTest, ClassConstants) {}

// Use static_assert to check that functions we expect to be compile time
// evaluatable are really that way.
TEST_F(EnumSetTest, ConstexprsAreValid) {}

TEST_F(EnumSetTest, DefaultConstructor) {}

TEST_F(EnumSetTest, OneArgConstructor) {}

TEST_F(EnumSetTest, OneArgConstructorSize) {}

TEST_F(EnumSetTest, TwoArgConstructor) {}

TEST_F(EnumSetTest, ThreeArgConstructor) {}

TEST_F(EnumSetTest, DuplicatesInConstructor) {}

TEST_F(EnumSetTest, All) {}

TEST_F(EnumSetTest, AllExtreme) {}

TEST_F(EnumSetTest, FromRange) {}

TEST_F(EnumSetTest, Put) {}

TEST_F(EnumSetTest, PutAll) {}

TEST_F(EnumSetTest, PutRange) {}

TEST_F(EnumSetTest, RetainAll) {}

TEST_F(EnumSetTest, Remove) {}

TEST_F(EnumSetTest, RemoveAll) {}

TEST_F(EnumSetTest, Clear) {}

TEST_F(EnumSetTest, Set) {}

TEST_F(EnumSetTest, Has) {}

TEST_F(EnumSetTest, HasAll) {}

TEST_F(EnumSetTest, HasAny) {}

TEST_F(EnumSetTest, Iterators) {}

TEST_F(EnumSetTest, RangeBasedForLoop) {}

TEST_F(EnumSetTest, IteratorComparisonOperators) {}

TEST_F(EnumSetTest, IteratorIncrementOperators) {}

TEST_F(EnumSetTest, Union) {}

TEST_F(EnumSetTest, Intersection) {}

TEST_F(EnumSetTest, Difference) {}

TEST_F(EnumSetTest, ToFromEnumBitmask) {}

TEST_F(EnumSetTest, ToFromEnumBitmaskExtreme) {}

TEST_F(EnumSetTest, FromEnumBitmaskIgnoresExtraBits) {}

TEST_F(EnumSetTest, OneEnumValue) {}

TEST_F(EnumSetTest, SparseEnum) {}

TEST_F(EnumSetTest, GetNth64bitWordBitmaskFromEnum) {}

TEST_F(EnumSetTest, SparseEnumSmall) {}

TEST_F(EnumSetDeathTest, CrashesOnOutOfRange) {}

TEST_F(EnumSetDeathTest, EnumWithNegatives) {}

TEST_F(EnumSetDeathTest, EnumWithOnlyNegatives) {}

TEST_F(EnumSetDeathTest, VariadicConstructorCrashesOnOutOfRange) {}

TEST_F(EnumSetDeathTest, FromRangeCrashesOnBadInputs) {}

TEST_F(EnumSetDeathTest, PutCrashesOnOutOfRange) {}

TEST_F(EnumSetDeathTest, PutRangeCrashesOnBadInputs) {}

TEST_F(EnumSetTest, ToStringEmpty) {}

TEST_F(EnumSetTest, ToString) {}

TEST_F(EnumSetTest, ToVectorEmpty) {}

TEST_F(EnumSetTest, ToVector) {}

}  // namespace
}  // namespace base