rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <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

Function Documentation

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.