17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H 18 #define CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H 21 #include "glog/logging.h" 22 #include "gmock/gmock.h" 23 #include "gtest/gtest.h" 31 MOCK_METHOD1(DoEnqueueSensorData,
void(proto::SensorData *));
33 std::unique_ptr<proto::SensorData> data_request)
override {
34 DoEnqueueSensorData(data_request.get());
39 void(
int,
const std::set<SensorId> &,
40 const mapping::proto::TrajectoryBuilderOptions &));
49 #endif // CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H MOCK_METHOD0(Start, void())
MOCK_CONST_METHOD1(GetLocalSlamResultSensorId, SensorId(int))
virtual void AddTrajectory(int local_trajectory_id, const std::set< SensorId > &expected_sensor_ids, const mapping::proto::TrajectoryBuilderOptions &trajectory_options)=0
MOCK_METHOD1(DoEnqueueSensorData, void(proto::SensorData *))
virtual void Shutdown()=0
void EnqueueSensorData(std::unique_ptr< proto::SensorData > data_request) override
virtual void FinishTrajectory(int local_trajectory_id)=0
MOCK_METHOD3(AddTrajectory, void(int, const std::set< SensorId > &, const mapping::proto::TrajectoryBuilderOptions &))
mapping::TrajectoryBuilderInterface::SensorId SensorId
virtual SensorId GetLocalSlamResultSensorId(int local_trajectory_id) const =0