@@ -52,21 +52,21 @@ TEST(DataTest, Constructor)
5252// Number of packets for a given protocol are determined in the Data() constructor
5353TEST (DataTest, GetNumPackets)
5454{
55- // Number of packets shared by all protocols is 16
55+ // Number of packets shared by all protocols is 17
5656 create::Data data_v_1 (create::V_1);
57- // Number exclusive to V_1 = 4
58- // 16 + 4 = 20
57+ // Number exclusive to V_1 = 3
58+ // 17 + 3 = 20
5959 EXPECT_EQ (static_cast <int >(data_v_1.getNumPackets ()), 20 );
6060
6161 create::Data data_v_2 (create::V_2);
6262 // Number exclusive to V_2 = 3
63- // 16 + 3 = 19
64- EXPECT_EQ (static_cast <int >(data_v_2.getNumPackets ()), 19 );
63+ // 17 + 3 = 20
64+ EXPECT_EQ (static_cast <int >(data_v_2.getNumPackets ()), 20 );
6565
6666 create::Data data_v_3 (create::V_3);
6767 // Number exclusive to V_3 = 13
68- // 16 + 13 = 29
69- EXPECT_EQ (static_cast <int >(data_v_3.getNumPackets ()), 29 );
68+ // 17 + 13 = 30
69+ EXPECT_EQ (static_cast <int >(data_v_3.getNumPackets ()), 30 );
7070
7171 create::Data data_v_all (create::V_ALL);
7272 EXPECT_EQ (static_cast <int >(data_v_all.getNumPackets ()), 33 );
@@ -108,7 +108,7 @@ TEST(DataTest, GetPacketIDs)
108108 create::Data data_v_3 (create::V_3);
109109 const std::vector<uint8_t > packet_ids = data_v_3.getPacketIDs ();
110110 // Vector should have same length as reported by getNumPackets()
111- ASSERT_EQ (static_cast <int >(packet_ids.size ()), 29 );
111+ ASSERT_EQ (static_cast <int >(packet_ids.size ()), 30 );
112112
113113 // Vector should contain ID_LEFT_ENC
114114 bool found = false ;
@@ -124,18 +124,18 @@ TEST(DataTest, GetPacketIDs)
124124
125125TEST (DataTest, GetTotalDataBytes)
126126{
127- // All protocols have 20 mutual data bytes
128- // V_1 has an additional 6 bytes
127+ // All protocols have 21 mutual data bytes
128+ // V_1 has an additional 5 bytes
129129 create::Data data_v_1 (create::V_1);
130130 EXPECT_EQ (static_cast <int >(data_v_1.getTotalDataBytes ()), 26 );
131131
132132 // V_2 has an additional 5 bytes
133133 create::Data data_v_2 (create::V_2);
134- EXPECT_EQ (static_cast <int >(data_v_2.getTotalDataBytes ()), 25 );
134+ EXPECT_EQ (static_cast <int >(data_v_2.getTotalDataBytes ()), 26 );
135135
136136 // V_3 has an additional 21 bytes
137137 create::Data data_v_3 (create::V_3);
138- EXPECT_EQ (static_cast <int >(data_v_3.getTotalDataBytes ()), 41 );
138+ EXPECT_EQ (static_cast <int >(data_v_3.getTotalDataBytes ()), 42 );
139139}
140140
141141TEST (DataTest, IsValidPacketID)
0 commit comments