|
mavtables
0.2.1
MAVLink router and firewall.
|
#include <catch.hpp>#include <fakeit.hpp>#include "Action.hpp"#include "Call.hpp"#include "Chain.hpp"#include "If.hpp"#include "MAVAddress.hpp"#include "Packet.hpp"#include "PacketVersion1.hpp"#include "PacketVersion2.hpp"#include "Rule.hpp"#include "utility.hpp"#include "common.hpp"#include "common_Packet.hpp"#include "common_Rule.hpp"
Go to the source code of this file.
Functions | |
| TEST_CASE ("Call's are constructable.", "[Call]") | |
| TEST_CASE ("Call's are comparable.", "[Call]") | |
| TEST_CASE ("Call's 'action' method determines what to do with a " "packet/address combination.", "[Call]") | |
| TEST_CASE ("Call's are printable (without a condition but with a priority).", "[Call]") | |
| TEST_CASE ("Call's are printable (with a condition but without a priority).", "[Call]") | |
| Call | call (chain, -3, If().type("PING").from("192.168/8").to("172.16/4")) |
| TEST_CASE ("Call's 'clone' method returns a polymorphic copy.", "[Call]") | |
Variables | |
| auto | ping = packet_v2::Packet(to_vector(PingV2())) |
| Call | call (chain) |
| Rule & | rule = call |
| TEST_CASE | ( | "Call's are constructable." | , |
| "" | [Call] | ||
| ) |
Definition at line 37 of file test_Call.cpp.
References mock_shared().

| TEST_CASE | ( | "Call's are comparable." | , |
| "" | [Call] | ||
| ) |
Definition at line 80 of file test_Call.cpp.
References mock_shared().

| TEST_CASE | ( | "Call's 'action' method determines what to do with a " "packet/address combination." | , |
| "" | [Call] | ||
| ) |
Definition at line 125 of file test_Call.cpp.
References Action::make_accept(), Action::make_continue(), Action::make_default(), Action::make_reject(), mock_shared(), and ping.

| TEST_CASE | ( | "Call's are printable (without a condition but with a priority)." | , |
| "" | [Call] | ||
| ) |
Definition at line 243 of file test_Call.cpp.
| TEST_CASE | ( | "Call's are printable (with a condition but without a priority)." | , |
| "" | [Call] | ||
| ) |
Definition at line 261 of file test_Call.cpp.
| TEST_CASE | ( | "Call's 'clone' method returns a polymorphic copy." | , |
| "" | [Call] | ||
| ) |
Definition at line 304 of file test_Call.cpp.
| auto ping = packet_v2::Packet(to_vector(PingV2())) |
Definition at line 229 of file test_Call.cpp.
Definition at line 231 of file test_Call.cpp.
1.8.14