2 #include "gtest/gtest.h"
4 #include "KDIS/KDefines.h"
8 #include "KDIS/PDU/Entity_Info_Interaction/Attribute_PDU.h"
9 #include "KDIS/PDU/Information_Operations/IO_Action_PDU.h"
10 #include "KDIS/PDU/Information_Operations/IO_Report_PDU.h"
15 //////////////////////////////////////////////////////////////////////////
16 // Entity Info Interaction
17 //////////////////////////////////////////////////////////////////////////
19 TEST(PDU_EncodeDecode7
, Attribute_PDU
)
22 KDataStream stream
= pduIn
.Encode();
23 Attribute_PDU
pduOut(stream
);
24 EXPECT_EQ(pduIn
, pduOut
);
25 EXPECT_EQ(0, stream
.GetBufferSize());
28 //////////////////////////////////////////////////////////////////////////
29 // Information Operations
30 //////////////////////////////////////////////////////////////////////////
32 TEST(PDU_EncodeDecode7
, IO_Action_PDU
)
35 KDataStream stream
= pduIn
.Encode();
36 IO_Action_PDU
pduOut(stream
);
37 EXPECT_EQ(pduIn
, pduOut
);
38 EXPECT_EQ(0, stream
.GetBufferSize());
41 TEST(PDU_EncodeDecode7
, IO_Report_PDU
)
44 KDataStream stream
= pduIn
.Encode();
45 IO_Report_PDU
pduOut(stream
);
46 EXPECT_EQ(pduIn
, pduOut
);
47 EXPECT_EQ(0, stream
.GetBufferSize());