Skip to content

Commit bdb3046

Browse files
sec: test count in ciphering engine test
1 parent 8e8fadb commit bdb3046

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unittests/security/ciphering_engine_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ TEST_P(fxt_nea1, ciphering_engine_generic_nea1)
142142
ASSERT_TRUE(result.buf.has_value());
143143
ASSERT_TRUE(trim_tail_to_bitlength(result.buf.value(), param.length));
144144
EXPECT_EQ(result.buf.value(), ciphertext);
145+
EXPECT_EQ(result.count, param.count);
145146
}
146147

147148
TEST_P(fxt_nea2, ciphering_engine_generic_nea2)
@@ -163,6 +164,7 @@ TEST_P(fxt_nea2, ciphering_engine_generic_nea2)
163164
ASSERT_TRUE(result.buf.has_value());
164165
ASSERT_TRUE(trim_tail_to_bitlength(result.buf.value(), param.length));
165166
EXPECT_EQ(result.buf.value(), ciphertext);
167+
EXPECT_EQ(result.count, param.count);
166168
}
167169

168170
TEST_P(fxt_nea3, ciphering_engine_generic_nea3)
@@ -184,6 +186,7 @@ TEST_P(fxt_nea3, ciphering_engine_generic_nea3)
184186
ASSERT_TRUE(result.buf.has_value());
185187
ASSERT_TRUE(trim_tail_to_bitlength(result.buf.value(), param.length));
186188
EXPECT_EQ(result.buf.value(), ciphertext);
189+
EXPECT_EQ(result.count, param.count);
187190
}
188191

189192
//////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)