Instrument Neutral Distributed Interface INDI
2.0.2
integs
DriverMock.h
Go to the documentation of this file.
1
/*******************************************************************************
2
Copyright(c) 2022 Ludovic Pollet. All rights reserved.
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
7
8
This library 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 GNU
11
Library General Public License for more details.
12
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
17
*******************************************************************************/
18
19
#ifndef DRIVER_MOCK_H_
20
#define DRIVER_MOCK_H_ 1
21
22
#include <string>
23
#include <unistd.h>
24
25
#include "
ConnectionMock.h
"
26
32
class
DriverMock
33
{
34
int
driverConnection;
35
36
int
driverFds[2];
37
public
:
38
DriverMock
();
39
virtual
~DriverMock
();
40
41
// Start the listening socket that will receive driver upon their starts
42
void
setup
();
43
44
void
waitEstablish
();
45
46
void
terminateDriver
();
47
48
void
ping
();
49
50
ConnectionMock
cnx
;
51
};
52
53
54
#endif
// DRIVER_MOCK_H_
ConnectionMock.h
ConnectionMock
Definition:
ConnectionMock.h:31
DriverMock
Definition:
DriverMock.h:33
DriverMock::DriverMock
DriverMock()
Definition:
DriverMock.cpp:74
DriverMock::ping
void ping()
Definition:
DriverMock.cpp:68
DriverMock::terminateDriver
void terminateDriver()
Definition:
DriverMock.cpp:56
DriverMock::cnx
ConnectionMock cnx
Definition:
DriverMock.h:50
DriverMock::~DriverMock
virtual ~DriverMock()
Definition:
DriverMock.cpp:81
DriverMock::waitEstablish
void waitEstablish()
Definition:
DriverMock.cpp:49
DriverMock::setup
void setup()
Definition:
DriverMock.cpp:44
Generated on Sat May 13 2023 14:24:22 for Instrument Neutral Distributed Interface INDI by
1.9.1