2 #include "gtest/gtest.h" 8 TEST(LocklessQueueTest, PushAndPop) {
9 LocklessQueue<int> queue;
10 queue.Push(common::make_unique<int>(1));
11 queue.Push(common::make_unique<int>(2));
12 EXPECT_EQ(*queue.Pop(), 1);
13 queue.Push(common::make_unique<int>(3));
14 queue.Push(common::make_unique<int>(4));
15 EXPECT_EQ(*queue.Pop(), 2);
16 queue.Push(common::make_unique<int>(5));
17 EXPECT_EQ(*queue.Pop(), 3);
18 EXPECT_EQ(*queue.Pop(), 4);
19 EXPECT_EQ(*queue.Pop(), 5);
20 EXPECT_EQ(queue.Pop(),
nullptr);
TEST(TrajectoryConnectivityStateTest, UnknownTrajectory)