#include "base/task/sequence_manager/lazily_deallocated_deque.h"
#include "base/test/scoped_mock_clock_override.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace base {
namespace sequence_manager {
namespace internal {
class LazilyDeallocatedDequeTest : public testing::Test { … };
TEST_F(LazilyDeallocatedDequeTest, InitiallyEmpty) { … }
TEST_F(LazilyDeallocatedDequeTest, PushBackAndPopFront1) { … }
TEST_F(LazilyDeallocatedDequeTest, PushBackAndPopFront1000) { … }
TEST_F(LazilyDeallocatedDequeTest, PushFrontBackAndPopFront1) { … }
TEST_F(LazilyDeallocatedDequeTest, PushFrontAndPopFront1000) { … }
TEST_F(LazilyDeallocatedDequeTest, MaybeShrinkQueueWithLargeSizeDrop) { … }
TEST_F(LazilyDeallocatedDequeTest, MaybeShrinkQueueWithSmallSizeDrop) { … }
TEST_F(LazilyDeallocatedDequeTest, MaybeShrinkQueueToEmpty) { … }
TEST_F(LazilyDeallocatedDequeTest, MaybeShrinkQueueRateLimiting) { … }
TEST_F(LazilyDeallocatedDequeTest, Iterators) { … }
TEST_F(LazilyDeallocatedDequeTest, PushBackAndFront) { … }
TEST_F(LazilyDeallocatedDequeTest, PushBackThenSetCapacity) { … }
TEST_F(LazilyDeallocatedDequeTest, PushFrontThenSetCapacity) { … }
TEST_F(LazilyDeallocatedDequeTest, PushFrontThenSetCapacity2) { … }
TEST_F(LazilyDeallocatedDequeTest, PushBackAndFrontThenSetCapacity) { … }
TEST_F(LazilyDeallocatedDequeTest, RingPushFront) { … }
TEST_F(LazilyDeallocatedDequeTest, RingPushBack) { … }
TEST_F(LazilyDeallocatedDequeTest, RingCanPush) { … }
TEST_F(LazilyDeallocatedDequeTest, RingPushPopPushPop) { … }
TEST_F(LazilyDeallocatedDequeTest, PushAndIterate) { … }
TEST_F(LazilyDeallocatedDequeTest, Swap) { … }
class DestructorTestItem { … };
int DestructorTestItem::destructor_count_ = …;
TEST_F(LazilyDeallocatedDequeTest, PopFrontCallsDestructor) { … }
TEST_F(LazilyDeallocatedDequeTest, ExpectedNumberOfDestructorsCalled) { … }
}
}
}