17 #ifndef CARTOGRAPHER_SENSOR_INTERNAL_TEST_HELPERS_H_ 18 #define CARTOGRAPHER_SENSOR_INTERNAL_TEST_HELPERS_H_ 30 #include "gmock/gmock.h" 35 MATCHER_P(Near, point, std::string(negation ?
"Doesn't" :
"Does") +
" match.") {
36 return arg.isApprox(point, 0.001f);
41 typedef std::tuple<
int , std::string ,
47 const std::string& sensor_id,
int time) {
54 const std::string& sensor_id,
65 const std::string& sensor_id,
79 std::unique_ptr<sensor::Data>
data;
87 #endif // CARTOGRAPHER_SENSOR_INTERNAL_TEST_HELPERS_H_
virtual void AddSensorData(int trajectory_id, std::unique_ptr< Data > data)=0
UniversalTimeScaleClock::time_point Time
Time FromUniversal(const int64 ticks)
MATCHER_P(Near, point, std::string(negation ? "Doesn't" :"Does")+" match.")
std::unique_ptr< Dispatchable< DataType > > MakeDispatchable(const std::string &sensor_id, const DataType &data)
std::tuple< int, std::string, common::Time > CollatorOutput