Classes | Namespaces | Typedefs | Functions | Variables
test_callback_queue.cpp File Reference
#include <gtest/gtest.h>
#include <ros/callback_queue.h>
#include <ros/console.h>
#include <ros/timer.h>
#include <boost/atomic.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
Include dependency graph for test_callback_queue.cpp:

Go to the source code of this file.

Classes

class  ConditionObject
 
class  CountingCallback
 
class  ros::NodeHandle
 
class  RaceConditionCallback
 
class  RecursiveCallback
 
class  SelfRemovingCallback
 
class  TimerRecursionCallback
 

Namespaces

 ros
 

Typedefs

typedef boost::shared_ptr< CountingCallbackCountingCallbackPtr
 
typedef boost::shared_ptr< RecursiveCallbackRecursiveCallbackPtr
 
typedef boost::shared_ptr< SelfRemovingCallbackSelfRemovingCallbackPtr
 
typedef boost::shared_ptr< TimerRecursionCallbackTimerRecursionCallbackPtr
 

Functions

void callAvailableThread (CallbackQueue *queue, bool &done)
 
void callOneThread (CallbackQueue *queue, bool &done)
 
void dummyTimer (const ros::TimerEvent &)
 
int main (int argc, char **argv)
 
void recursiveTimer (const ros::TimerEvent &)
 
size_t runThreadedTest (const CountingCallbackPtr &cb, const boost::function< void(CallbackQueue *, bool &)> &threadFunc)
 
 TEST (CallbackQueue, singleCallback)
 
 TEST (CallbackQueue, multipleCallbacksCallAvailable)
 
 TEST (CallbackQueue, multipleCallbacksCallOne)
 
 TEST (CallbackQueue, remove)
 
 TEST (CallbackQueue, removeSelf)
 
 TEST (CallbackQueue, recursive1)
 
 TEST (CallbackQueue, recursive2)
 
 TEST (CallbackQueue, recursive3)
 
 TEST (CallbackQueue, recursive4)
 
 TEST (CallbackQueue, threadedCallAvailable)
 
 TEST (CallbackQueue, threadedCallOne)
 
 TEST (CallbackQueue, recursiveTimer)
 
 TEST (CallbackQueue, raceConditionCallback)
 

Variables

CallbackQueueInterfacerecursiveTimerQueue
 

Typedef Documentation

Definition at line 67 of file test_callback_queue.cpp.

Definition at line 211 of file test_callback_queue.cpp.

Definition at line 157 of file test_callback_queue.cpp.

Definition at line 374 of file test_callback_queue.cpp.

Function Documentation

void callAvailableThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 261 of file test_callback_queue.cpp.

void callOneThread ( CallbackQueue queue,
bool &  done 
)

Definition at line 307 of file test_callback_queue.cpp.

void dummyTimer ( const ros::TimerEvent )

Definition at line 337 of file test_callback_queue.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 477 of file test_callback_queue.cpp.

void recursiveTimer ( const ros::TimerEvent )

Definition at line 343 of file test_callback_queue.cpp.

size_t runThreadedTest ( const CountingCallbackPtr cb,
const boost::function< void(CallbackQueue *, bool &)> &  threadFunc 
)

Definition at line 269 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
singleCallback   
)

Definition at line 69 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallAvailable   
)

Definition at line 90 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
multipleCallbacksCallOne   
)

Definition at line 104 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
remove   
)

Definition at line 120 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
removeSelf   
)

Definition at line 159 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive1   
)

Definition at line 213 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive2   
)

Definition at line 225 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive3   
)

Definition at line 237 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursive4   
)

Definition at line 249 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallAvailable   
)

Definition at line 299 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
threadedCallOne   
)

Definition at line 315 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
recursiveTimer   
)

Definition at line 376 of file test_callback_queue.cpp.

TEST ( CallbackQueue  ,
raceConditionCallback   
)

Definition at line 452 of file test_callback_queue.cpp.

Variable Documentation

CallbackQueueInterface* recursiveTimerQueue

Definition at line 341 of file test_callback_queue.cpp.



test_roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:46