Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H
00018 #define CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H
00019
00020 #include "cartographer/cloud/internal/local_trajectory_uploader.h"
00021 #include "glog/logging.h"
00022 #include "gmock/gmock.h"
00023 #include "gtest/gtest.h"
00024
00025 namespace cartographer {
00026 namespace cloud {
00027 namespace testing {
00028
00029 class MockLocalTrajectoryUploader : public LocalTrajectoryUploaderInterface {
00030 public:
00031 MOCK_METHOD1(DoEnqueueSensorData, void(proto::SensorData *));
00032 void EnqueueSensorData(
00033 std::unique_ptr<proto::SensorData> data_request) override {
00034 DoEnqueueSensorData(data_request.get());
00035 }
00036 MOCK_METHOD0(Start, void());
00037 MOCK_METHOD0(Shutdown, void());
00038 MOCK_METHOD4(AddTrajectory,
00039 grpc::Status(const std::string &, int,
00040 const std::set<SensorId> &,
00041 const mapping::proto::TrajectoryBuilderOptions &));
00042 MOCK_METHOD2(FinishTrajectory, grpc::Status(const std::string &, int));
00043 MOCK_CONST_METHOD1(GetLocalSlamResultSensorId, SensorId(int));
00044 };
00045
00046 }
00047 }
00048 }
00049
00050 #endif // CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H