21 using namespace folly;
26 TEST(DestructorCheckTest, WithoutGuard) {
30 TEST(DestructorCheckTest, SingleGuard) {
36 TEST(DestructorCheckTest, SingleGuardDestroyed) {
37 auto d = std::make_unique<Derived>();
38 Derived::Safety
s(*d);
44 TEST(DestructorCheckTest, MultipleGuards) {
46 auto s1 = std::make_unique<Derived::Safety>(d);
47 auto s2 = std::make_unique<Derived::Safety>(d);
48 auto s3 = std::make_unique<Derived::Safety>(d);
55 auto s4 = std::make_unique<Derived::Safety>(d);
68 TEST(DestructorCheckTest, MultipleGuardsDestroyed) {
69 auto d = std::make_unique<Derived>();
70 auto s1 = std::make_unique<Derived::Safety>(*d);
71 auto s2 = std::make_unique<Derived::Safety>(*d);
72 auto s3 = std::make_unique<Derived::Safety>(*d);
73 auto s4 = std::make_unique<Derived::Safety>(*d);
—— Concurrent Priority Queue Implementation ——
#define ASSERT_FALSE(condition)
#define ASSERT_TRUE(condition)
TEST(SequencedExecutor, CPUThreadPoolExecutor)