#include <limits>
#include <vector>
#include <gtest/gtest.h>
#include <ros/rate.h>
#include <ros/time.h>
#include <sys/time.h>
#include <boost/date_time/posix_time/ptime.hpp>
Go to the source code of this file.
Functions | |
void | alarmHandler (int sig) |
void | generate_rand_durations (uint32_t range, uint64_t runs, std::vector< ros::Duration > &values1, std::vector< ros::Duration > &values2) |
void | generate_rand_times (uint32_t range, uint64_t runs, std::vector< ros::Time > &values1, std::vector< ros::Time > &values2) |
int | main (int argc, char **argv) |
void | seed_rand () |
TEST (Duration, Comparitors) | |
TEST (Duration, Constants) | |
TEST (Duration, FromNSec) | |
TEST (Duration, OperatorMinus) | |
TEST (Duration, OperatorMinusEquals) | |
TEST (Duration, OperatorPlus) | |
TEST (Duration, OperatorPlusEquals) | |
TEST (Duration, OperatorTimes) | |
TEST (Duration, sleepWithSignal) | |
TEST (Duration, ToFromSec) | |
TEST (Rate, constructFromDouble) | |
TEST (Rate, constructFromDuration) | |
TEST (Rate, sleep_return_value_false) | |
TEST (Rate, sleep_return_value_true) | |
TEST (SteadyTime, sleep) | |
TEST (SteadyTime, sleepUntil) | |
TEST (Time, CastFromDoubleExceptions) | |
TEST (Time, Comparitors) | |
TEST (Time, Constants) | |
TEST (Time, DontMungeStreamState) | |
TEST (Time, OperatorMinus) | |
TEST (Time, OperatorMinusEquals) | |
TEST (Time, OperatorMinusExceptions) | |
TEST (Time, OperatorPlus) | |
TEST (Time, OperatorPlusEquals) | |
TEST (Time, OperatorPlusExceptions) | |
TEST (Time, RoundingError) | |
TEST (Time, SecNSecConstructor) | |
TEST (Time, size) | |
TEST (Time, ToFromBoost) | |
TEST (Time, ToFromDouble) | |
TEST (WallRate, constructFromDouble) | |
TEST (WallRate, constructFromDuration) | |
Variables | |
double | epsilon = 1e-9 |
void alarmHandler | ( | int | sig | ) |
Definition at line 570 of file test/time.cpp.
void generate_rand_durations | ( | uint32_t | range, |
uint64_t | runs, | ||
std::vector< ros::Duration > & | values1, | ||
std::vector< ros::Duration > & | values2 | ||
) |
Definition at line 75 of file test/time.cpp.
void generate_rand_times | ( | uint32_t | range, |
uint64_t | runs, | ||
std::vector< ros::Time > & | values1, | ||
std::vector< ros::Time > & | values2 | ||
) |
Definition at line 61 of file test/time.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 715 of file test/time.cpp.
void seed_rand | ( | ) |
Definition at line 49 of file test/time.cpp.
TEST | ( | Duration | , |
Comparitors | |||
) |
Definition at line 405 of file test/time.cpp.
TEST | ( | Duration | , |
Constants | |||
) |
Definition at line 591 of file test/time.cpp.
TEST | ( | Duration | , |
FromNSec | |||
) |
Definition at line 455 of file test/time.cpp.
TEST | ( | Duration | , |
OperatorMinus | |||
) |
Definition at line 487 of file test/time.cpp.
TEST | ( | Duration | , |
OperatorMinusEquals | |||
) |
Definition at line 549 of file test/time.cpp.
TEST | ( | Duration | , |
OperatorPlus | |||
) |
Definition at line 471 of file test/time.cpp.
TEST | ( | Duration | , |
OperatorPlusEquals | |||
) |
Definition at line 528 of file test/time.cpp.
TEST | ( | Duration | , |
OperatorTimes | |||
) |
Definition at line 512 of file test/time.cpp.
TEST | ( | Duration | , |
sleepWithSignal | |||
) |
Definition at line 575 of file test/time.cpp.
TEST | ( | Duration | , |
ToFromSec | |||
) |
Definition at line 439 of file test/time.cpp.
TEST | ( | Rate | , |
constructFromDouble | |||
) |
Definition at line 642 of file test/time.cpp.
TEST | ( | Rate | , |
constructFromDuration | |||
) |
Definition at line 636 of file test/time.cpp.
TEST | ( | Rate | , |
sleep_return_value_false | |||
) |
Definition at line 661 of file test/time.cpp.
TEST | ( | Rate | , |
sleep_return_value_true | |||
) |
Definition at line 655 of file test/time.cpp.
TEST | ( | SteadyTime | , |
sleep | |||
) |
Definition at line 695 of file test/time.cpp.
TEST | ( | SteadyTime | , |
sleepUntil | |||
) |
Definition at line 705 of file test/time.cpp.
TEST | ( | Time | , |
CastFromDoubleExceptions | |||
) |
Definition at line 298 of file test/time.cpp.
TEST | ( | Time | , |
Comparitors | |||
) |
Definition at line 116 of file test/time.cpp.
TEST | ( | Time | , |
Constants | |||
) |
Definition at line 373 of file test/time.cpp.
TEST | ( | Time | , |
DontMungeStreamState | |||
) |
Definition at line 269 of file test/time.cpp.
TEST | ( | Time | , |
OperatorMinus | |||
) |
Definition at line 199 of file test/time.cpp.
TEST | ( | Time | , |
OperatorMinusEquals | |||
) |
Definition at line 241 of file test/time.cpp.
TEST | ( | Time | , |
OperatorMinusExceptions | |||
) |
Definition at line 320 of file test/time.cpp.
TEST | ( | Time | , |
OperatorPlus | |||
) |
Definition at line 178 of file test/time.cpp.
TEST | ( | Time | , |
OperatorPlusEquals | |||
) |
Definition at line 220 of file test/time.cpp.
TEST | ( | Time | , |
OperatorPlusExceptions | |||
) |
Definition at line 351 of file test/time.cpp.
TEST | ( | Time | , |
RoundingError | |||
) |
Definition at line 163 of file test/time.cpp.
TEST | ( | Time | , |
SecNSecConstructor | |||
) |
Definition at line 262 of file test/time.cpp.
TEST | ( | Time | , |
size | |||
) |
Definition at line 110 of file test/time.cpp.
TEST | ( | Time | , |
ToFromBoost | |||
) |
Definition at line 281 of file test/time.cpp.
TEST | ( | Time | , |
ToFromDouble | |||
) |
Definition at line 149 of file test/time.cpp.
TEST | ( | WallRate | , |
constructFromDouble | |||
) |
Definition at line 674 of file test/time.cpp.
TEST | ( | WallRate | , |
constructFromDuration | |||
) |
Definition at line 667 of file test/time.cpp.
double epsilon = 1e-9 |
Definition at line 47 of file test/time.cpp.