22 #include "gtest/gtest.h" 28 class OrderedMultiQueueTest :
public ::testing::Test {
37 queue_.AddQueue(queue_key, [
this](std::unique_ptr<Data> data) {
39 EXPECT_GE(data->time,
values_.back().time);
46 std::unique_ptr<Data> MakeImu(
const int ordinal) {
47 return common::make_unique<Data>(
49 Data::Imu{Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero()});
56 TEST_F(OrderedMultiQueueTest, Ordering) {
75 for (
size_t i = 0; i <
values_.size() - 1; ++i) {
80 TEST_F(OrderedMultiQueueTest, MarkQueueAsFinished) {
92 for (
size_t i = 0; i <
values_.size(); ++i) {
97 TEST_F(OrderedMultiQueueTest, CommonStartTimePerTrajectory) {
std::vector< Data > values_
Time FromUniversal(const int64 ticks)
int64 ToUniversal(const Time time)