PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::device::MockDcpScanner Class Referencefinal

Mock implementation of IDcpScanner used to test ProfinetScanner without performing real DCP network discovery. More...

+ Inheritance diagram for profinet::device::MockDcpScanner:
+ Collaboration diagram for profinet::device::MockDcpScanner:

Public Member Functions

 MOCK_METHOD (dcp::ResponseMap, Scan,(const std::string &interface, double timeoutSec),(override))
 Discover PROFINET devices using the configured mock response.
 
- Public Member Functions inherited from profinet::device::IDcpScanner
virtual ~IDcpScanner ()=default
 
virtual dcp::ResponseMap Scan (const std::string &interface, double timeoutSec)=0
 Discover PROFINET devices using DCP.
 

Detailed Description

Mock implementation of IDcpScanner used to test ProfinetScanner without performing real DCP network discovery.

Definition at line 235 of file test_device.cpp.

Member Function Documentation

◆ MOCK_METHOD()

profinet::device::MockDcpScanner::MOCK_METHOD ( dcp::ResponseMap  ,
Scan  ,
(const std::string &interface, double timeoutSec)  ,
(override)   
)

Discover PROFINET devices using the configured mock response.

Parameters
interfaceNetwork interface name.
timeoutSecDiscovery timeout in seconds.
Returns
Configured DCP discovery responses.

The documentation for this class was generated from the following file: