Lines Matching refs:dummy_queue
41 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
42 data_dispatcher_register(dispatcher, DUMMY_TYPE_0, dummy_queue); in TEST_F()
43 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
49 EXPECT_FALSE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
50 EXPECT_STREQ(dummy_data_0, (char *)fixed_queue_try_dequeue(dummy_queue)); in TEST_F()
51 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
53 fixed_queue_free(dummy_queue, NULL); in TEST_F()
86 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
88 data_dispatcher_register(dispatcher, DUMMY_TYPE_0, dummy_queue); in TEST_F()
90 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
97 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
102 fixed_queue_free(dummy_queue, NULL); in TEST_F()
111 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
112 data_dispatcher_register(dispatcher, DUMMY_TYPE_0, dummy_queue); in TEST_F()
113 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
120 EXPECT_FALSE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
121 EXPECT_STREQ(dummy_data_0, (char *)fixed_queue_try_dequeue(dummy_queue)); in TEST_F()
122 EXPECT_FALSE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
123 EXPECT_STREQ(dummy_data_1, (char *)fixed_queue_try_dequeue(dummy_queue)); in TEST_F()
124 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
126 fixed_queue_free(dummy_queue, NULL); in TEST_F()
162 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
164 data_dispatcher_register(dispatcher, DUMMY_TYPE_0, dummy_queue); in TEST_F()
166 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
173 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
178 fixed_queue_free(dummy_queue, NULL); in TEST_F()
187 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
188 data_dispatcher_register(dispatcher, DUMMY_TYPE_0, dummy_queue); in TEST_F()
190 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
193 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
195 fixed_queue_free(dummy_queue, NULL); in TEST_F()
203 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
204 data_dispatcher_register_default(dispatcher, dummy_queue); in TEST_F()
206 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
209 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
211 fixed_queue_free(dummy_queue, NULL); in TEST_F()
219 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
220 data_dispatcher_register(dispatcher, TYPE_EDGE_CASE_ZERO, dummy_queue); in TEST_F()
221 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
227 EXPECT_FALSE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
228 EXPECT_STREQ(dummy_data_0, (char *)fixed_queue_try_dequeue(dummy_queue)); in TEST_F()
229 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
231 fixed_queue_free(dummy_queue, NULL); in TEST_F()
239 fixed_queue_t *dummy_queue = fixed_queue_new(DUMMY_QUEUE_SIZE); in TEST_F() local
240 data_dispatcher_register(dispatcher, TYPE_EDGE_CASE_MAX, dummy_queue); in TEST_F()
241 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
247 EXPECT_FALSE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
248 EXPECT_STREQ(dummy_data_0, (char *)fixed_queue_try_dequeue(dummy_queue)); in TEST_F()
249 EXPECT_TRUE(fixed_queue_is_empty(dummy_queue)); in TEST_F()
251 fixed_queue_free(dummy_queue, NULL); in TEST_F()