#include <gtest/gtest.h>
#include <ros/callback_queue.h>
#include <ros/console.h>
#include <ros/timer.h>
#include <boost/shared_ptr.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <boost/function.hpp>
Go to the source code of this file.
typedef boost::shared_ptr<CountingCallback> CountingCallbackPtr |
Definition at line 66 of file test_callback_queue.cpp.
typedef boost::shared_ptr<RecursiveCallback> RecursiveCallbackPtr |
Definition at line 210 of file test_callback_queue.cpp.
typedef boost::shared_ptr<SelfRemovingCallback> SelfRemovingCallbackPtr |
Definition at line 156 of file test_callback_queue.cpp.
typedef boost::shared_ptr<TimerRecursionCallback> TimerRecursionCallbackPtr |
Definition at line 373 of file test_callback_queue.cpp.
void callAvailableThread | ( | CallbackQueue * | queue, |
bool & | done | ||
) |
Definition at line 260 of file test_callback_queue.cpp.
void callOneThread | ( | CallbackQueue * | queue, |
bool & | done | ||
) |
Definition at line 306 of file test_callback_queue.cpp.
void dummyTimer | ( | const ros::TimerEvent & | ) |
Definition at line 336 of file test_callback_queue.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 401 of file test_callback_queue.cpp.
void recursiveTimer | ( | const ros::TimerEvent & | ) |
Definition at line 342 of file test_callback_queue.cpp.
size_t runThreadedTest | ( | const CountingCallbackPtr & | cb, |
const boost::function< void(CallbackQueue *, bool &)> & | threadFunc | ||
) |
Definition at line 268 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
singleCallback | |||
) |
Definition at line 68 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallAvailable | |||
) |
Definition at line 89 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
multipleCallbacksCallOne | |||
) |
Definition at line 103 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
remove | |||
) |
Definition at line 119 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
removeSelf | |||
) |
Definition at line 158 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive1 | |||
) |
Definition at line 212 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive2 | |||
) |
Definition at line 224 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive3 | |||
) |
Definition at line 236 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursive4 | |||
) |
Definition at line 248 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallAvailable | |||
) |
Definition at line 298 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
threadedCallOne | |||
) |
Definition at line 314 of file test_callback_queue.cpp.
TEST | ( | CallbackQueue | , |
recursiveTimer | |||
) |
Definition at line 375 of file test_callback_queue.cpp.
Definition at line 340 of file test_callback_queue.cpp.