17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_ 23 #include "glog/logging.h" 24 #include "gmock/gmock.h" 25 #include "gtest/gtest.h" 37 int(
const std::set<SensorId> &expected_sensor_ids,
38 const mapping::proto::TrajectoryBuilderOptions &trajectory_options,
40 local_slam_result_callback));
42 int(
const mapping::proto::TrajectoryBuilderOptionsWithSensorIds
43 &options_with_sensor_ids_proto));
49 mapping::proto::SubmapQuery::Response *));
56 const std::vector<mapping::proto::TrajectoryBuilderOptionsWithSensorIds>
64 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_
MOCK_METHOD1(AddTrajectoryForDeserialization, int(const mapping::proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto))
TrajectoryBuilderInterface::LocalSlamResultCallback LocalSlamResultCallback
virtual std::string SubmapToProto(const SubmapId &submap_id, proto::SubmapQuery::Response *response)=0
virtual void FinishTrajectory(int trajectory_id)=0
virtual void LoadState(io::ProtoStreamReaderInterface *reader, bool load_frozen_state)=0
virtual int AddTrajectoryBuilder(const std::set< SensorId > &expected_sensor_ids, const proto::TrajectoryBuilderOptions &trajectory_options, LocalSlamResultCallback local_slam_result_callback)=0
MOCK_CONST_METHOD0(num_trajectory_builders, int())
virtual const std::vector< proto::TrajectoryBuilderOptionsWithSensorIds > & GetAllTrajectoryBuilderOptions() const =0
MOCK_METHOD2(SubmapToProto, std::string(const mapping::SubmapId &, mapping::proto::SubmapQuery::Response *))
virtual mapping::PoseGraphInterface * pose_graph()=0
MOCK_METHOD0(pose_graph, mapping::PoseGraphInterface *())
virtual int num_trajectory_builders() const =0
virtual int AddTrajectoryForDeserialization(const proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto)=0
virtual void SerializeState(io::ProtoStreamWriterInterface *writer)=0
virtual mapping::TrajectoryBuilderInterface * GetTrajectoryBuilder(int trajectory_id) const =0
MOCK_METHOD3(AddTrajectoryBuilder, int(const std::set< SensorId > &expected_sensor_ids, const mapping::proto::TrajectoryBuilderOptions &trajectory_options, mapping::MapBuilderInterface::LocalSlamResultCallback local_slam_result_callback))
MOCK_CONST_METHOD1(GetTrajectoryBuilder, mapping::TrajectoryBuilderInterface *(int trajectory_id))