mavtables  0.2.1
MAVLink router and firewall.
Functions
test_PacketQueue.cpp File Reference
#include <chrono>
#include <future>
#include <memory>
#include <stdexcept>
#include <thread>
#include <catch.hpp>
#include <Packet.hpp>
#include <PacketQueue.hpp>
#include "PacketVersion2.hpp"
#include "common_Packet.hpp"
Include dependency graph for test_PacketQueue.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("PacketQueue's can be constructed.", "[AddressPool]")
 
 TEST_CASE ("PacketQueue's 'push' adds a packet to the queue.", "[PacketQueue]")
 
 TEST_CASE ("PacketQueue's 'empty' method determines if the queue is empty or " "not.", "[PacketQueue]")
 
 TEST_CASE ("PacketQueue's can be managed with 'push' and 'pop' methods.", "[PacketQueue]")
 
 TEST_CASE ("PacketQueue's 'pop' method blocks by default.", "[PacketQueue]")
 
 TEST_CASE ("PacketQueue's 'pop' method optionally has a timeout.", "[PacketQueue]")
 
 TEST_CASE ("PacketQueue's 'pop' method is non blocking when given a 0 second " "timeout.", "[PacketQueue]")
 

Function Documentation

◆ TEST_CASE() [1/7]

TEST_CASE ( "PacketQueue's can be constructed."  ,
""  [AddressPool] 
)

Definition at line 36 of file test_PacketQueue.cpp.

◆ TEST_CASE() [2/7]

TEST_CASE ( "PacketQueue's 'push' adds a packet to the queue."  ,
""  [PacketQueue] 
)

Definition at line 51 of file test_PacketQueue.cpp.

◆ TEST_CASE() [3/7]

TEST_CASE ( "PacketQueue's 'empty' method determines if the queue is empty or " "not."  ,
""  [PacketQueue] 
)

Definition at line 75 of file test_PacketQueue.cpp.

References ping.

◆ TEST_CASE() [4/7]

TEST_CASE ( "PacketQueue's can be managed with 'push' and 'pop' methods."  ,
""  [PacketQueue] 
)

Definition at line 86 of file test_PacketQueue.cpp.

References logger::heartbeat(), and ping.

Here is the call graph for this function:

◆ TEST_CASE() [5/7]

TEST_CASE ( "PacketQueue's 'pop' method blocks by default."  ,
""  [PacketQueue] 
)

Definition at line 205 of file test_PacketQueue.cpp.

References ping.

◆ TEST_CASE() [6/7]

TEST_CASE ( "PacketQueue's 'pop' method optionally has a timeout."  ,
""  [PacketQueue] 
)

Definition at line 240 of file test_PacketQueue.cpp.

References ping.

◆ TEST_CASE() [7/7]

TEST_CASE ( "PacketQueue's 'pop' method is non blocking when given a 0 second " "timeout."  ,
""  [PacketQueue] 
)

Definition at line 288 of file test_PacketQueue.cpp.

References ping.