rad 6.2.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
testSMRequestor.cpp File Reference

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 <fstream>
#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)
 

Detailed Description

Unit tests for the SMRequestor class.

Author
landolfa

Typedef Documentation

◆ ErrEvent

◆ OkEvent

◆ TimeoutEvent

Function Documentation

◆ TEST_F() [1/3]

TEST_F ( TestSMRequestor ,
Ctor  )

◆ TEST_F() [2/3]

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() [3/3]

TEST_F ( TestSMRequestor ,
SendReqRecvRepTimeout  )

Test timeout scenario.