#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) { … }
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 { … };
}
TEST(SmallMap, SubclassInitializationWithFunctionPointer) { … }
TEST(SmallMap, SubclassInitializationWithFunctionObject) { … }
namespace {
template <typename V>
class MoveOnlyType { … };
}
TEST(SmallMap, MoveOnlyValueType) { … }
TEST(SmallMap, Emplace) { … }
}