@@ -529,8 +529,7 @@ TEST_F(SequentialWriterTest, snapshot_writes_to_new_file_with_bag_split)
529
529
std::vector<rosbag2_storage::SerializedBagMessageSharedPtr> messages;
530
530
for (size_t i = 0 ; i < num_msgs_to_write; i++) {
531
531
auto message = std::make_shared<rosbag2_storage::SerializedBagMessage>();
532
- message->recv_timestamp = first_msg_timestamp + static_cast <rcutils_time_point_value_t >(i);
533
- message->send_timestamp = first_msg_timestamp + static_cast <rcutils_time_point_value_t >(i);
532
+ message->time_stamp = first_msg_timestamp + static_cast <rcutils_time_point_value_t >(i);
534
533
message->topic_name = topic_name;
535
534
message->serialized_data =
536
535
rosbag2_storage::make_serialized_message (msg_content.c_str (), msg_content.length ());
@@ -540,7 +539,7 @@ TEST_F(SequentialWriterTest, snapshot_writes_to_new_file_with_bag_split)
540
539
// Expect a single write call when the snapshot is triggered
541
540
EXPECT_CALL (
542
541
*storage_, write (
543
- An<const std::vector<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>> &>())
542
+ An<const std::vector<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>> &>())
544
543
).Times (1 );
545
544
546
545
ON_CALL (
@@ -629,7 +628,7 @@ TEST_F(SequentialWriterTest, snapshot_writes_to_new_file_with_bag_split)
629
628
EXPECT_EQ (first_file_info.message_count , num_expected_msgs);
630
629
EXPECT_EQ (
631
630
std::chrono::time_point_cast<std::chrono::nanoseconds>(
632
- first_file_info.starting_time ).time_since_epoch ().count (),
631
+ first_file_info.starting_time ).time_since_epoch ().count (),
633
632
expected_start_time);
634
633
EXPECT_EQ (first_file_info.duration .count (), expected_duration);
635
634
}
@@ -644,7 +643,7 @@ TEST_F(SequentialWriterTest, snapshot_can_be_called_twice)
644
643
// Expect to call write method twice. Once per each snapshot.
645
644
EXPECT_CALL (
646
645
*storage_, write (
647
- An<const std::vector<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>> &>())
646
+ An<const std::vector<std::shared_ptr<const rosbag2_storage::SerializedBagMessage>> &>())
648
647
).Times (2 );
649
648
650
649
ON_CALL (*storage_, get_relative_file_path).WillByDefault (
0 commit comments