CARLA
Loading...
Searching...
No Matches
Functions
test_multigpu_frame_data.cpp File Reference
#include "test.h"
#include <carla/Buffer.h>
#include <carla/multigpu/commands.h>
#include <carla/multigpu/frameDataCodec.h>
#include <carla/multigpu/frameTime.h>
#include <carla/multigpu/secondaryCommands.h>
#include <chrono>
#include <cstring>
#include <future>
#include <memory>
#include <optional>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include <vector>

Go to the source code of this file.

Functions

 TEST (MultiGpuCommands, process_command_delivers_exactly_the_declared_payload)
 
 TEST (MultiGpuCommands, process_command_drops_a_message_shorter_than_its_header)
 
 TEST (MultiGpuCommands, process_command_drops_a_payload_larger_than_the_message)
 
 TEST (MultiGpuCommands, process_command_ignores_trailing_bytes)
 
 TEST (MultiGpuFrameData, bounded_reader_cannot_read_past_its_field)
 
 TEST (MultiGpuFrameData, bounded_reader_rejects_lists_larger_than_the_packet)
 
 TEST (MultiGpuFrameData, bounded_reader_skips_unknown_fields)
 
 TEST (MultiGpuFrameData, bounded_reader_skips_what_a_record_grew)
 
 TEST (MultiGpuFrameData, complete_frame_is_read_in_order)
 
 TEST (MultiGpuFrameData, frame_without_frame_counter_is_incomplete)
 
 TEST (MultiGpuFrameData, longer_known_packet_is_counted_and_skipped)
 
 TEST (MultiGpuFrameData, nested_counts_read_off_the_wire_terminate)
 
 TEST (MultiGpuFrameData, reader_exception_is_reported)
 
 TEST (MultiGpuFrameData, short_frame_counter_is_a_short_packet)
 
 TEST (MultiGpuFrameData, short_known_packet_fails_inside_its_own_packet)
 
 TEST (MultiGpuFrameData, truncated_header_stops_the_read)
 
 TEST (MultiGpuFrameData, truncated_payload_stops_the_read)
 
 TEST (MultiGpuFrameData, unknown_packet_as_the_last_packet_terminates)
 
 TEST (MultiGpuFrameData, unknown_packet_mid_stream_is_skipped)
 
 TEST (MultiGpuFrameTime, legacy_frame_without_frame_time_is_complete)
 
 TEST (MultiGpuFrameTime, longer_is_reported_as_grown)
 
 TEST (MultiGpuFrameTime, round_trips_every_field)
 
 TEST (MultiGpuFrameTime, shorter_than_v1_is_rejected)
 
 TEST (MultiGpuFrameTime, unset_fixed_delta_round_trips)
 
 TEST (MultiGpuFrameTime, v1_layout_is_pinned)
 

Function Documentation

◆ TEST() [1/25]

TEST ( MultiGpuCommands  ,
process_command_delivers_exactly_the_declared_payload   
)

Definition at line 505 of file test_multigpu_frame_data.cpp.

References carla::multigpu::SEND_FRAME.

◆ TEST() [2/25]

TEST ( MultiGpuCommands  ,
process_command_drops_a_message_shorter_than_its_header   
)

Definition at line 512 of file test_multigpu_frame_data.cpp.

◆ TEST() [3/25]

TEST ( MultiGpuCommands  ,
process_command_drops_a_payload_larger_than_the_message   
)

Definition at line 516 of file test_multigpu_frame_data.cpp.

References carla::multigpu::LOAD_MAP.

◆ TEST() [4/25]

TEST ( MultiGpuCommands  ,
process_command_ignores_trailing_bytes   
)

Definition at line 520 of file test_multigpu_frame_data.cpp.

References carla::multigpu::GET_TOKEN.

◆ TEST() [5/25]

TEST ( MultiGpuFrameData  ,
bounded_reader_cannot_read_past_its_field   
)

Definition at line 352 of file test_multigpu_frame_data.cpp.

References carla::multigpu::WriteField().

◆ TEST() [6/25]

TEST ( MultiGpuFrameData  ,
bounded_reader_rejects_lists_larger_than_the_packet   
)

Definition at line 283 of file test_multigpu_frame_data.cpp.

◆ TEST() [7/25]

TEST ( MultiGpuFrameData  ,
bounded_reader_skips_unknown_fields   
)

Definition at line 328 of file test_multigpu_frame_data.cpp.

References carla::multigpu::WriteField().

◆ TEST() [8/25]

TEST ( MultiGpuFrameData  ,
bounded_reader_skips_what_a_record_grew   
)

Definition at line 298 of file test_multigpu_frame_data.cpp.

◆ TEST() [9/25]

TEST ( MultiGpuFrameData  ,
complete_frame_is_read_in_order   
)

Definition at line 141 of file test_multigpu_frame_data.cpp.

◆ TEST() [10/25]

TEST ( MultiGpuFrameData  ,
frame_without_frame_counter_is_incomplete   
)

Definition at line 178 of file test_multigpu_frame_data.cpp.

◆ TEST() [11/25]

TEST ( MultiGpuFrameData  ,
longer_known_packet_is_counted_and_skipped   
)

Definition at line 219 of file test_multigpu_frame_data.cpp.

◆ TEST() [12/25]

TEST ( MultiGpuFrameData  ,
nested_counts_read_off_the_wire_terminate   
)

Definition at line 253 of file test_multigpu_frame_data.cpp.

◆ TEST() [13/25]

TEST ( MultiGpuFrameData  ,
reader_exception_is_reported   
)

Definition at line 239 of file test_multigpu_frame_data.cpp.

◆ TEST() [14/25]

TEST ( MultiGpuFrameData  ,
short_frame_counter_is_a_short_packet   
)

Definition at line 232 of file test_multigpu_frame_data.cpp.

◆ TEST() [15/25]

TEST ( MultiGpuFrameData  ,
short_known_packet_fails_inside_its_own_packet   
)

Definition at line 205 of file test_multigpu_frame_data.cpp.

◆ TEST() [16/25]

TEST ( MultiGpuFrameData  ,
truncated_header_stops_the_read   
)

Definition at line 187 of file test_multigpu_frame_data.cpp.

◆ TEST() [17/25]

TEST ( MultiGpuFrameData  ,
truncated_payload_stops_the_read   
)

Definition at line 195 of file test_multigpu_frame_data.cpp.

◆ TEST() [18/25]

TEST ( MultiGpuFrameData  ,
unknown_packet_as_the_last_packet_terminates   
)

Definition at line 169 of file test_multigpu_frame_data.cpp.

◆ TEST() [19/25]

TEST ( MultiGpuFrameData  ,
unknown_packet_mid_stream_is_skipped   
)

Definition at line 155 of file test_multigpu_frame_data.cpp.

◆ TEST() [20/25]

TEST ( MultiGpuFrameTime  ,
legacy_frame_without_frame_time_is_complete   
)

Definition at line 467 of file test_multigpu_frame_data.cpp.

◆ TEST() [21/25]

TEST ( MultiGpuFrameTime  ,
longer_is_reported_as_grown   
)

Definition at line 448 of file test_multigpu_frame_data.cpp.

◆ TEST() [22/25]

TEST ( MultiGpuFrameTime  ,
round_trips_every_field   
)

◆ TEST() [23/25]

TEST ( MultiGpuFrameTime  ,
shorter_than_v1_is_rejected   
)

Definition at line 438 of file test_multigpu_frame_data.cpp.

◆ TEST() [24/25]

TEST ( MultiGpuFrameTime  ,
unset_fixed_delta_round_trips   
)

Definition at line 399 of file test_multigpu_frame_data.cpp.

◆ TEST() [25/25]

TEST ( MultiGpuFrameTime  ,
v1_layout_is_pinned   
)