PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
mockRPCCon.h File Reference

Google Mock implementation of the IRPCCon PROFINET RPC connection interface. More...

#include <gmock/gmock.h>
#include "profinet/IRPCCon.h"
+ Include dependency graph for mockRPCCon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  profinet::rpc::MockRPCCon
 Google Mock implementation of the IRPCCon RPC connection interface. More...
 

Namespaces

namespace  profinet
 
namespace  profinet::rpc
 

Detailed Description

Google Mock implementation of the IRPCCon PROFINET RPC connection interface.

Provides a mock implementation of the IRPCCon interface for unit testing higher-level PROFINET components without requiring a live PROFINET IO-Device or RPC transport. All RPC operations exposed by IRPCCon are implemented using Google Mock, allowing tests to configure return values, exceptions, and expectations for connection management, record read/write operations, I&M access, diagnosis, topology discovery, and cyclic communication control operations.

The mock is intended primarily for testing components such as ProfinetDevice. It isolates device-level logic from the concrete RPCCon implementation and allows tests to verify delegation, argument mapping, connection state handling, error propagation, and protocol-specific behaviour independently of the underlying transport.

Note
MockRPCCon does not implement any actual PROFINET RPC functionality. It is intended exclusively for use in unit tests.

Definition in file mockRPCCon.h.