mock_local_trajectory_uploader.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 The Cartographer Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H
18 #define CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H
19 
21 #include "glog/logging.h"
22 #include "gmock/gmock.h"
23 #include "gtest/gtest.h"
24 
25 namespace cartographer {
26 namespace cloud {
27 namespace testing {
28 
30  public:
31  MOCK_METHOD1(DoEnqueueSensorData, void(proto::SensorData *));
33  std::unique_ptr<proto::SensorData> data_request) override {
34  DoEnqueueSensorData(data_request.get());
35  }
36  MOCK_METHOD0(Start, void());
37  MOCK_METHOD0(Shutdown, void());
39  void(int, const std::set<SensorId> &,
40  const mapping::proto::TrajectoryBuilderOptions &));
41  MOCK_METHOD1(FinishTrajectory, void(int));
43 };
44 
45 } // namespace testing
46 } // namespace cloud
47 } // namespace cartographer
48 
49 #endif // CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_LOCAL_TRAJECTORY_UPLOADER_H
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 *))
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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58