Classes | Macros | Functions
corba_ipc_test.cpp File Reference
#include "unit.hpp"
#include <iostream>
#include <memory>
#include <rtt/OperationCaller.hpp>
#include <rtt/Service.hpp>
#include <transports/corba/DataFlowI.h>
#include <rtt/transports/corba/RemotePorts.hpp>
#include <transports/corba/ServiceC.h>
#include <transports/corba/corba.h>
#include <transports/corba/CorbaConnPolicy.hpp>
#include <rtt/InputPort.hpp>
#include <rtt/OutputPort.hpp>
#include <rtt/TaskContext.hpp>
#include <transports/corba/TaskContextServer.hpp>
#include <transports/corba/TaskContextProxy.hpp>
#include <transports/corba/CorbaLib.hpp>
#include <rtt/internal/DataSourceTypeInfo.hpp>
#include <string>
#include <stdlib.h>
Include dependency graph for corba_ipc_test.cpp:

Go to the source code of this file.

Classes

class  CorbaTest
 

Macros

#define ASSERT_PORT_SIGNALLING(code, read_port)
 
#define wait_for(cond, times)
 
#define wait_for_equal(a, b, times)
 

Functions

 BOOST_AUTO_TEST_CASE (testRemoteOperationCallerC)
 
 BOOST_AUTO_TEST_CASE (testRemoteOperationCaller)
 
 BOOST_AUTO_TEST_CASE (testRemoteOperationCallerCallback)
 
 BOOST_AUTO_TEST_CASE (testAnyOperationCaller)
 
 BOOST_AUTO_TEST_CASE (testDataFlowInterface)
 
 BOOST_AUTO_TEST_CASE (testPortConnections)
 
 BOOST_AUTO_TEST_CASE (testPortProxying)
 
 BOOST_AUTO_TEST_CASE (testDataHalfs)
 
 BOOST_AUTO_TEST_CASE (testBufferHalfs)
 

Macro Definition Documentation

#define ASSERT_PORT_SIGNALLING (   code,
  read_port 
)
Value:
do { \
signalled_port = 0; \
int wait = 0; \
code; \
while (read_port != signalled_port && wait++ != 5) \
usleep(100000); \
BOOST_CHECK( read_port == signalled_port ); \
} while(0)
int usleep(unsigned int us)
Definition: fosi.cpp:58

Definition at line 152 of file corba_ipc_test.cpp.

#define wait_for (   cond,
  times 
)
Value:
do { \
bool wait_for_helper; \
int wait = 0; \
while( (wait_for_helper = !(cond)) && wait++ != times ) \
usleep(100000); \
if (wait_for_helper) BOOST_CHECK( cond ); \
} while(0)
int usleep(unsigned int us)
Definition: fosi.cpp:58

Definition at line 161 of file corba_ipc_test.cpp.

#define wait_for_equal (   a,
  b,
  times 
)
Value:
do { \
bool wait_for_helper; \
int wait = 0; \
while( (wait_for_helper = ((a) != (b))) && wait++ != times ) \
usleep(100000); \
if (wait_for_helper) BOOST_CHECK_EQUAL( a, b ); \
} while(0)
int usleep(unsigned int us)
Definition: fosi.cpp:58

Definition at line 169 of file corba_ipc_test.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( testRemoteOperationCallerC  )

Definition at line 235 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testRemoteOperationCaller  )

Definition at line 263 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testRemoteOperationCallerCallback  )

Tests synchronous/asynchronous callbacks to self from a remote peer. For example A->B->A or even A->B->A->B

Definition at line 288 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testAnyOperationCaller  )

Definition at line 308 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testDataFlowInterface  )

Definition at line 380 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testPortConnections  )

Definition at line 408 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testPortProxying  )

Definition at line 499 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testDataHalfs  )

Definition at line 564 of file corba_ipc_test.cpp.

BOOST_AUTO_TEST_CASE ( testBufferHalfs  )

Definition at line 632 of file corba_ipc_test.cpp.



rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:45