chromium/base/types/id_type_unittest.cc

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

#include <limits>

#include "base/types/id_type.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

namespace {

class Foo;
FooId;

// A type that uses both 0 and -1 as invalid values.
MultipleInvalidId;

}  // namespace

TEST(IdType, DefaultValueIsInvalid) {}

TEST(IdType, NormalValueIsValid) {}

TEST(IdType, ExtraInvalidValue) {}

TEST(IdType, Generator) {}

TEST(IdType, GeneratorWithNonZeroInvalidValue) {}

TEST(IdType, GeneratorWithBigUnsignedInvalidValue) {}

TEST(IdType, GeneratorWithDifferentStartingValue) {}

TEST(IdType, EnsureConstexpr) {}

class IdTypeSpecificValueTest : public ::testing::TestWithParam<int> {};

TEST_P(IdTypeSpecificValueTest, UnsafeValueRoundtrips) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace base