Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tigercosmos committed Dec 6, 2024
1 parent d1ca9a2 commit 97a74a1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Tests/Packet++Test/Tests/GvcpTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ PTF_TEST_CASE(GvcpDiscoveryAck)
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getStatus(), GvcpResponseStatus::Success);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getCommand(), GvcpCommand::DiscoveredAck);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getAckId(), 1);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getDataSize(), udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_ack_header));
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getDataSize(),
udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_ack_header));

PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getMacAddress(), pcpp::MacAddress("00:04:4b:ea:b0:b4"));
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getIpAddress(), pcpp::IPv4Address("172.28.60.100"));
Expand Down Expand Up @@ -154,7 +155,8 @@ PTF_TEST_CASE(GvcpForceIpCommand)
PTF_ASSERT_EQUAL(gvcpRequestLayer.getProtocol(), GVCP);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getFlag(), 0x01);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getCommand(), GvcpCommand::ForceIpCmd);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(), udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(),
udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getRequestId(), 8787);

PTF_ASSERT_EQUAL(gvcpRequestLayer.getMacAddress(), pcpp::MacAddress("8c:e9:b4:01:63:b2"));
Expand Down Expand Up @@ -250,7 +252,8 @@ PTF_TEST_CASE(GvcpReadRegisterCommand)
PTF_ASSERT_EQUAL(gvcpRequestLayer.getProtocol(), GVCP);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getFlag(), 0x01);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getCommand(), GvcpCommand::ReadRegCmd);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(), udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(),
udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getRequestId(), 35824);

auto payload = gvcpRequestLayer.getLayerPayload();
Expand Down Expand Up @@ -301,7 +304,8 @@ PTF_TEST_CASE(GvcpReadRegisterAcknowledge)
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getProtocol(), GVCP);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getAckId(), 0x1fee);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getCommand(), GvcpCommand::ReadRegAck);
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getDataSize(), udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_ack_header));
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getDataSize(),
udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_ack_header));
PTF_ASSERT_EQUAL(gvcpAcknowledgeLayer.getStatus(), 0x0000);

auto payload = gvcpAcknowledgeLayer.getLayerPayload();
Expand Down Expand Up @@ -352,7 +356,8 @@ PTF_TEST_CASE(GvcpWriteRegisterCommand)
PTF_ASSERT_EQUAL(gvcpRequestLayer.getProtocol(), GVCP);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getFlag(), 0x01);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getCommand(), GvcpCommand::WriteRegCmd);
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(), udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getDataSize(),
udpLayer->getLayerPayloadSize() - sizeof(internal::gvcp_request_header));
PTF_ASSERT_EQUAL(gvcpRequestLayer.getRequestId(), 8788);

auto payload = gvcpRequestLayer.getLayerPayload();
Expand Down

0 comments on commit 97a74a1

Please sign in to comment.