18#include <catch2/catch_amalgamated.hpp>
21TEST_CASE(
"pm::simulated_network_delayTest",
"[yarp::pm]")
23 YARP_REQUIRE_PLUGIN(
"simulated_network_delay",
"portmonitor")
35 "fast_tcp+send.portmonitor+file.simulated_network_delay+delay_ms.10+type.dll"
38 SECTION(
"Test that normally the portmonitor is not used")
44 receiver.
open(
"/recv");
static Carrier * getCarrierTemplate(const std::string &name)
Get template for carrier.
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Utilities for manipulating the YARP network, including initialization and shutdown.
A mini-server for network communication.
bool write(const PortWriter &writer, const PortWriter *callback=nullptr) const override
Write an object to the port.
bool read(PortReader &reader, bool willReply=false) override
Read an object from the port.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A single value (typically within a Bottle).
virtual std::int16_t asInt16() const
Get 16-bit integer value.
void delay(double seconds)
Wait for a certain number of seconds.
The main, catch-all namespace for YARP.
TEST_CASE("pm::simulated_network_delayTest", "[yarp::pm]")