| 70 | } |
| 71 | |
| 72 | TEST(BlockingQueueTest, Test1) { |
| 73 | thread inserter_thread(InsertSomeThings); |
| 74 | int32_t i; |
| 75 | ASSERT_OK(test1_queue.BlockingGet(&i)); |
| 76 | ASSERT_EQ(1, i); |
| 77 | ASSERT_OK(test1_queue.BlockingGet(&i)); |
| 78 | ASSERT_EQ(2, i); |
| 79 | ASSERT_OK(test1_queue.BlockingGet(&i)); |
| 80 | ASSERT_EQ(3, i); |
| 81 | inserter_thread.join(); |
| 82 | } |
| 83 | |
| 84 | TEST(BlockingQueueTest, TestBlockingDrainTo) { |
| 85 | BlockingQueue<int32_t> test_queue(3); |
nothing calls this directly
no test coverage detected