chromium/base/traits_bag_unittest.cc

// Copyright 2018 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/traits_bag.h"

#include <optional>

#include "testing/gmock/include/gmock/gmock.h"

namespace base {
namespace trait_helpers {
namespace {

struct ExampleTrait {};

struct ExampleTrait2 {};

enum class EnumTraitA {};

enum class EnumTraitB {};

struct TestTraits {};

// Like TestTraits, except ExampleTrait is filtered away.
struct FilteredTestTraits : public TestTraits {};

struct RequiredEnumTestTraits {};

struct OptionalEnumTestTraits {};

}  // namespace

TEST(TraitsBagTest, DefaultConstructor) {}

TEST(TraitsBagTest, HasTrait) {}

TEST(TraitsBagTest, GetEnumWithDefault) {}

TEST(TraitsBagTest, RequiredEnum) {}

TEST(TraitsBagTest, OptionalEnum) {}

TEST(TraitsBagTest, ValidTraitInheritance) {}

TEST(TraitsBagTest, Filtering) {}

TEST(TraitsBagTest, FilteredTestTraits) {}

TEST(TraitsBagTest, EmptyTraitIsValid) {}

}  // namespace trait_helpers
}  // namespace base