Lines Matching full:queue
5 #include "src/locked-queue-inl.h"
18 LockedQueue<Record> queue; in TEST() local
19 EXPECT_TRUE(queue.IsEmpty()); in TEST()
24 LockedQueue<Record> queue; in TEST() local
25 EXPECT_TRUE(queue.IsEmpty()); in TEST()
26 queue.Enqueue(1); in TEST()
27 EXPECT_FALSE(queue.IsEmpty()); in TEST()
29 bool success = queue.Dequeue(&a); in TEST()
32 EXPECT_TRUE(queue.IsEmpty()); in TEST()
37 LockedQueue<Record> queue; in TEST() local
38 EXPECT_TRUE(queue.IsEmpty()); in TEST()
39 queue.Enqueue(1); in TEST()
40 EXPECT_FALSE(queue.IsEmpty()); in TEST()
42 bool success = queue.Peek(&a); in TEST()
45 EXPECT_FALSE(queue.IsEmpty()); in TEST()
46 success = queue.Dequeue(&a); in TEST()
49 EXPECT_TRUE(queue.IsEmpty()); in TEST()
54 LockedQueue<Record> queue; in TEST() local
55 EXPECT_TRUE(queue.IsEmpty()); in TEST()
57 bool success = queue.Peek(&a); in TEST()
63 LockedQueue<Record> queue; in TEST() local
64 EXPECT_TRUE(queue.IsEmpty()); in TEST()
65 queue.Enqueue(1); in TEST()
66 EXPECT_FALSE(queue.IsEmpty()); in TEST()
68 queue.Enqueue(i); in TEST()
69 EXPECT_FALSE(queue.IsEmpty()); in TEST()
73 EXPECT_FALSE(queue.IsEmpty()); in TEST()
74 queue.Dequeue(&rec); in TEST()
78 queue.Enqueue(i); in TEST()
79 EXPECT_FALSE(queue.IsEmpty()); in TEST()
82 EXPECT_FALSE(queue.IsEmpty()); in TEST()
83 queue.Dequeue(&rec); in TEST()
86 EXPECT_TRUE(queue.IsEmpty()); in TEST()