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

Unit tests for PROFINET RT Ethernet frame serialization and parsing. More...

#include <gtest/gtest.h>
#include <array>
#include <cstdint>
#include "profinet/rt.h"
+ Include dependency graph for test_rtFrame.cpp:

Go to the source code of this file.

Classes

class  profinet::rt::RtFrameTest
 Test fixture for RT Ethernet frame serialization. More...
 

Namespaces

namespace  profinet
 
namespace  profinet::rt
 

Functions

 profinet::rt::TEST_F (RtFrameTest, DISABLED_TaggedEthernetFrameRoundTrips)
 
 profinet::rt::TEST_F (RtFrameTest, UntaggedEthernetFrameParses)
 
 profinet::rt::TEST_F (RtFrameTest, NonProfinetEtherTypeIsRejected)
 

Detailed Description

Unit tests for PROFINET RT Ethernet frame serialization and parsing.

Verifies RT frame round-trip behavior for priority VLAN-tagged and untagged Ethernet frames.

The parser must determine the EtherType location dynamically because a priority VLAN tag changes the normal Ethernet header layout.

Definition in file test_rtFrame.cpp.