#include "components/performance_manager/public/resource_attribution/type_helpers.h"
#include <optional>
#include <type_traits>
#include <vector>
#include "base/types/optional_ref.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
namespace resource_attribution::internal {
namespace {
template <typename V>
class VariantTester { … };
template <typename T>
::testing::AssertionResult TestOptionalConstRef(base::optional_ref<T> opt_ref,
auto expected_value) { … }
TEST(ResourceAttrTypeHelpersTest, IsVariantAlternativeEmptyVariant) { … }
TEST(ResourceAttrTypeHelpersTest, IsVariantAlternativeSingleAlternative) { … }
TEST(ResourceAttrTypeHelpersTest, IsVariantAlternativeManyAlternatives) { … }
TEST(ResourceAttrTypeHelpersTest, IsVariantAlternativeWithMonostate) { … }
TEST(ResourceAttrTypeHelpersTest, GetAsOptionalSingleAlternative) { … }
TEST(ResourceAttrTypeHelpersTest, GetAsOptionalManyAlternatives) { … }
TEST(ResourceAttrTypeHelpersTest, GetAsOptionalWithMonostate) { … }
TEST(ResourceAttrTypeHelpersTest, VariantVectorSingleAlternative) { … }
TEST(ResourceAttrTypeHelpersTest, VariantVectorManyAlternatives) { … }
TEST(ResourceAttrTypeHelpersTest, VariantVectorWithMonostate) { … }
TEST(ResourceAttrTypeHelpersTest, VariantVectorConst) { … }
TEST(ResourceAttrTypeHelpersTest, VariantComparatorsSingleAlternative) { … }
TEST(ResourceAttrTypeHelpersTest, VariantComparatorsManyAlternatives) { … }
}
}