#include "third_party/blink/renderer/platform/wtf/deque.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/wtf/hash_set.h"
#include "third_party/blink/renderer/platform/wtf/wtf_test_helper.h"
namespace WTF {
namespace {
TEST(DequeTest, Basic) { … }
TEST(DequeTest, Iterators) { … }
template <wtf_size_t inlineCapacity>
void CheckNumberSequence(Deque<int, inlineCapacity>& deque,
int from,
int to,
bool increment) { … }
template <wtf_size_t inlineCapacity>
void CheckNumberSequenceReverse(Deque<int, inlineCapacity>& deque,
int from,
int to,
bool increment) { … }
template <wtf_size_t inlineCapacity>
void ReverseTest() { … }
TEST(DequeTest, Reverse) { … }
template <typename OwnPtrDeque>
void OwnPtrTest() { … }
TEST(DequeTest, OwnPtr) { … }
TEST(DequeTest, MoveOnlyType) { … }
HashSet<void*> g_constructed_wrapped_ints;
template <wtf_size_t inlineCapacity>
void SwapWithOrWithoutInlineCapacity() { … }
TEST(DequeTest, SwapWithOrWithoutInlineCapacity) { … }
bool InterestingNumber(int i) { … }
template <wtf_size_t inlineCapacity>
void TestDequeDestructorAndConstructorCallsWhenSwappingWithInlineCapacity() { … }
TEST(DequeTest, SwapWithConstructorsAndDestructors) { … }
template <wtf_size_t inlineCapacity>
void TestDequeValuesMovedAndSwappedWithInlineCapacity() { … }
TEST(DequeTest, ValuesMovedAndSwappedWithInlineCapacity) { … }
TEST(DequeTest, UniquePtr) { … }
TEST(DequeTest, MoveShouldNotMakeCopy) { … }
TEST(DequeTest, RemoveWhileIterating) { … }
struct Item { … };
TEST(DequeTest, emplace_back) { … }
TEST(DequeTest, emplace_front) { … }
static_assert …;
}
}