mock_local_trajectory_uploader.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2018 The Cartographer Authors
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
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 }  // namespace testing
00047 }  // namespace cloud
00048 }  // namespace cartographer
00049 
00050 #endif  // CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H


cartographer
Author(s): The Cartographer Authors
autogenerated on Thu May 9 2019 02:27:35