rad
2.0.0
|
Unit tests for the SMRequestor class. More...
#include <rad/smAdapter.hpp>
#include <rad/smRequestor.hpp>
#include <scxml4cpp/Action.h>
#include "types.pb.h"
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include <chrono>
#include <functional>
Classes | |
struct | OkEventTrait |
struct | ErrEventTrait |
struct | TimeoutEventTrait |
class | ReplyAction |
class | TestSMRequestor |
Typedefs | |
using | OkEvent = rad::EventT< OkEventTrait > |
using | ErrEvent = rad::EventT< ErrEventTrait > |
using | TimeoutEvent = rad::EventT< TimeoutEventTrait > |
Functions | |
TEST_F (TestSMRequestor, Ctor) | |
TEST_F (TestSMRequestor, SendReqRecvRep) | |
TEST_F (TestSMRequestor, SendReqRecvRepTimeout) | |
Unit tests for the SMRequestor class.
using ErrEvent = rad::EventT<ErrEventTrait> |
using OkEvent = rad::EventT<OkEventTrait> |
using TimeoutEvent = rad::EventT<TimeoutEventTrait> |
TEST_F | ( | TestSMRequestor | , |
Ctor | |||
) |
TEST_F | ( | TestSMRequestor | , |
SendReqRecvRep | |||
) |
Test that it is possible to successfully send a request and trigger, on reception of the reply, the OK or Err internal event.
TEST_F | ( | TestSMRequestor | , |
SendReqRecvRepTimeout | |||
) |
Test timeout scenario.