proxygen
|
#include <algorithm>
#include <thread>
#include <folly/AtomicLinkedList.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | TestIntrusiveObject |
class | TestObject |
Functions | |
TEST (AtomicIntrusiveLinkedList, Basic) | |
TEST (AtomicIntrusiveLinkedList, ReverseSweep) | |
TEST (AtomicIntrusiveLinkedList, Move) | |
TEST (AtomicIntrusiveLinkedList, Stress) | |
TEST (AtomicLinkedList, Basic) | |
TEST | ( | AtomicIntrusiveLinkedList | , |
Basic | |||
) |
Definition at line 40 of file AtomicLinkedListTest.cpp.
References a, b, c, folly::AtomicIntrusiveLinkedList< T, HookMember >::empty(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, TestIntrusiveObject::id(), folly::AtomicIntrusiveLinkedList< T, HookMember >::insertHead(), bm::list, folly::gen::move, and folly::AtomicIntrusiveLinkedList< T, HookMember >::sweep().
TEST | ( | AtomicIntrusiveLinkedList | , |
ReverseSweep | |||
) |
Definition at line 81 of file AtomicLinkedListTest.cpp.
References a, b, c, folly::AtomicIntrusiveLinkedList< T, HookMember >::empty(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, TestIntrusiveObject::id(), folly::AtomicIntrusiveLinkedList< T, HookMember >::insertHead(), bm::list, and folly::AtomicIntrusiveLinkedList< T, HookMember >::reverseSweep().
TEST | ( | AtomicIntrusiveLinkedList | , |
Move | |||
) |
Definition at line 99 of file AtomicLinkedListTest.cpp.
References a, b, folly::AtomicIntrusiveLinkedList< T, HookMember >::empty(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, TestIntrusiveObject::id(), folly::AtomicIntrusiveLinkedList< T, HookMember >::insertHead(), and folly::gen::move.
TEST | ( | AtomicIntrusiveLinkedList | , |
Stress | |||
) |
Definition at line 130 of file AtomicLinkedListTest.cpp.
References current, EXPECT_EQ, i, TestIntrusiveObject::id(), folly::AtomicIntrusiveLinkedList< T, HookMember >::insertHead(), kNumThreads, bm::list, folly::AtomicIntrusiveLinkedList< T, HookMember >::sweep(), and threads.
TEST | ( | AtomicLinkedList | , |
Basic | |||
) |
Definition at line 190 of file AtomicLinkedListTest.cpp.
References counter, EXPECT_EQ, EXPECT_TRUE, TestIntrusiveObject::id(), bm::list, and ptr.