chromium/third_party/abseil-cpp/absl/container/node_hash_map_test.cc

// Copyright 2018 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "absl/container/node_hash_map.h"

#include <cstddef>
#include <new>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/base/config.h"
#include "absl/container/internal/hash_policy_testing.h"
#include "absl/container/internal/tracked.h"
#include "absl/container/internal/unordered_map_constructor_test.h"
#include "absl/container/internal/unordered_map_lookup_test.h"
#include "absl/container/internal/unordered_map_members_test.h"
#include "absl/container/internal/unordered_map_modifiers_test.h"

namespace absl {
ABSL_NAMESPACE_BEGIN
namespace container_internal {
namespace {

Field;
IsEmpty;
Pair;
UnorderedElementsAre;
UnorderedElementsAreArray;

MapTypes;

INSTANTIATE_TYPED_TEST_SUITE_P();
INSTANTIATE_TYPED_TEST_SUITE_P();
INSTANTIATE_TYPED_TEST_SUITE_P();
INSTANTIATE_TYPED_TEST_SUITE_P();

M;

TEST(NodeHashMap, Emplace) {}

TEST(NodeHashMap, AssignRecursive) {}

TEST(FlatHashMap, MoveOnlyKey) {}

struct NonMovableKey {};
struct NonMovableKeyHash {};
struct NonMovableKeyEq {};

TEST(NodeHashMap, MergeExtractInsert) {}

bool FirstIsEven(std::pair<const int, int> p) {}

TEST(NodeHashMap, EraseIf) {}

TEST(NodeHashMap, CForEach) {}

TEST(NodeHashMap, CForEachMutate) {}

// This test requires std::launder for mutable key access in node handles.
#if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
TEST(NodeHashMap, NodeHandleMutableKeyAccess) {}
#endif

TEST(NodeHashMap, RecursiveTypeCompiles) {}

}  // namespace
}  // namespace container_internal
ABSL_NAMESPACE_END
}  // namespace absl