chromium/base/containers/small_map_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/small_map.h"

#include <stddef.h>

#include <algorithm>
#include <functional>
#include <map>
#include <unordered_map>

#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

TEST(SmallMap, General) {}

TEST(SmallMap, PostFixIteratorIncrement) {}

// Based on the General testcase.
TEST(SmallMap, CopyConstructor) {}

template <class inner>
static bool SmallMapIsSubset(small_map<inner> const& a,
                             small_map<inner> const& b) {}

template <class inner>
static bool SmallMapEqual(small_map<inner> const& a,
                          small_map<inner> const& b) {}

TEST(SmallMap, AssignmentOperator) {}

TEST(SmallMap, Insert) {}

TEST(SmallMap, InsertRange) {}

TEST(SmallMap, Erase) {}

TEST(SmallMap, EraseReturnsIteratorFollowingRemovedElement) {}

TEST(SmallMap, NonHashMap) {}

TEST(SmallMap, DefaultEqualKeyWorks) {}

namespace {

class unordered_map_add_item : public std::unordered_map<int, int> {};

void InitMap(unordered_map_add_item* map_ctor) {}

class unordered_map_add_item_initializer {};

}  // anonymous namespace

TEST(SmallMap, SubclassInitializationWithFunctionPointer) {}

TEST(SmallMap, SubclassInitializationWithFunctionObject) {}

namespace {

// This class acts as a basic implementation of a move-only type. The canonical
// example of such a type is scoped_ptr/unique_ptr.
template <typename V>
class MoveOnlyType {};

}  // namespace

TEST(SmallMap, MoveOnlyValueType) {}

TEST(SmallMap, Emplace) {}

}  // namespace base