test
include
psen_scan
mock_scanner.h
Go to the documentation of this file.
1
// Copyright (c) 2019 Pilz GmbH & Co. KG
2
//
3
// This program is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU Lesser General Public License as published by
5
// the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16
#ifndef PSEN_SCAN_TEST_MOCK_SCANNER_H
17
#define PSEN_SCAN_TEST_MOCK_SCANNER_H
18
19
#include <
psen_scan/scanner.h
>
20
#include <gmock/gmock.h>
21
22
namespace
psen_scan_test
23
{
24
class
MockScanner
:
public
psen_scan::vScanner
25
{
26
public
:
27
MOCK_METHOD0
(
start
,
void
());
28
MOCK_METHOD0
(
stop
,
void
());
29
MOCK_METHOD0
(
getCompleteScan
,
psen_scan::LaserScan
());
30
31
private
:
32
};
33
}
// namespace psen_scan_test
34
35
#endif // PSEN_SCAN_TEST_MOCK_SCANNER_H
psen_scan_test::MockScanner::MOCK_METHOD0
MOCK_METHOD0(start, void())
psen_scan::vScanner::stop
virtual void stop()=0
psen_scan::LaserScan
Class to hold the data for one laserscan without depencies to ROS.
Definition:
laserscan.h:29
psen_scan::vScanner::getCompleteScan
virtual LaserScan getCompleteScan()=0
psen_scan_test::MockScanner
Definition:
mock_scanner.h:24
psen_scan::vScanner
Definition:
scanner.h:28
scanner.h
psen_scan_test
Definition:
mock_psen_scan_udp_interface.h:25
psen_scan::vScanner::start
virtual void start()=0
psen_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:16:20