#include <algorithm>
#include <unordered_map>
#include "src/base/small-map.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace v8 {
namespace base {
TEST(SmallMapTest, General) { … }
TEST(SmallMapTest, PostFixIteratorIncrement) { … }
TEST(SmallMapTest, CopyConstructor) { … }
template <class inner>
static bool SmallMapIsSubset(SmallMap<inner> const& a,
SmallMap<inner> const& b) { … }
template <class inner>
static bool SmallMapEqual(SmallMap<inner> const& a, SmallMap<inner> const& b) { … }
TEST(SmallMapTest, AssignmentOperator) { … }
TEST(SmallMapTest, Insert) { … }
TEST(SmallMapTest, InsertRange) { … }
TEST(SmallMapTest, Erase) { … }
TEST(SmallMapTest, EraseReturnsIteratorFollowingRemovedElement) { … }
TEST(SmallMapTest, NonHashMap) { … }
TEST(SmallMapTest, 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(SmallMapTest, SubclassInitializationWithFunctionPointer) { … }
TEST(SmallMapTest, SubclassInitializationWithFunctionObject) { … }
namespace {
template <typename V>
class MoveOnlyType { … };
}
TEST(SmallMapTest, MoveOnlyValueType) { … }
TEST(SmallMapTest, Emplace) { … }
}
}