@@ -25,6 +25,10 @@ TEST_P(pdcp_rx_test, create_new_entity)
2525
2626 ASSERT_NE (pdcp_rx, nullptr );
2727 ASSERT_NE (test_frame, nullptr );
28+
29+ // No warnings or errors during construction
30+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
31+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
2832}
2933
3034// / Test extraction of PDCP sequence numbers
@@ -54,6 +58,10 @@ TEST_P(pdcp_rx_test, sn_unpack)
5458 } else {
5559 FAIL ();
5660 }
61+
62+ // No warnings or errors
63+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
64+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
5765}
5866
5967// / Test in-order reception of PDCP PDUs
@@ -95,6 +103,10 @@ TEST_P(pdcp_rx_test, rx_in_order)
95103 } else {
96104 FAIL ();
97105 }
106+
107+ // No warnings or errors
108+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
109+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
98110}
99111
100112// / Test out of order reception of PDUs.
@@ -160,6 +172,10 @@ TEST_P(pdcp_rx_test, rx_out_of_order)
160172 } else {
161173 FAIL ();
162174 }
175+
176+ // No warnings or errors
177+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
178+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
163179}
164180
165181// / Test out of order reception of PDUs.
@@ -209,6 +225,10 @@ TEST_P(pdcp_rx_test, rx_reordering_timer)
209225 } else {
210226 FAIL ();
211227 }
228+
229+ // No warnings or errors
230+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
231+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
212232}
213233
214234// / Test out of order reception of PDUs.
@@ -256,6 +276,10 @@ TEST_P(pdcp_rx_test, rx_reordering_timer_0ms)
256276 } else {
257277 FAIL ();
258278 }
279+
280+ // No warnings or errors
281+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
282+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
259283}
260284
261285// / Test out of order reception of PDUs.
@@ -306,6 +330,10 @@ TEST_P(pdcp_rx_test, rx_reordering_timer_infinite)
306330 } else {
307331 FAIL ();
308332 }
333+
334+ // One warning but no errors
335+ EXPECT_EQ (test_spy.get_warning_counter (), 1 );
336+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
309337}
310338
311339// / Test reception of PDUs with bad integrity checks.
@@ -344,6 +372,10 @@ TEST_P(pdcp_rx_test, rx_integrity_fail)
344372 } else {
345373 FAIL ();
346374 }
375+
376+ // Three warnings but no errors
377+ EXPECT_EQ (test_spy.get_warning_counter (), 3 );
378+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
347379}
348380
349381// / Test count wrap-around protection for PDCP RX
@@ -383,6 +415,10 @@ TEST_P(pdcp_rx_test, count_wraparound)
383415 };
384416
385417 test_max_count (rx_next_start);
418+
419+ // One warning and one error
420+ EXPECT_EQ (test_spy.get_warning_counter (), 1 );
421+ EXPECT_EQ (test_spy.get_error_counter (), 1 );
386422}
387423
388424// / Test TX SDU buffering.
@@ -420,6 +456,10 @@ TEST_P(pdcp_rx_test, rx_buffer)
420456 wait_pending_crypto ();
421457 worker.run_pending_tasks ();
422458 FLUSH_AND_ASSERT_EQ (2 , test_frame->sdu_queue .size ());
459+
460+ // No warnings or errors
461+ EXPECT_EQ (test_spy.get_warning_counter (), 0 );
462+ EXPECT_EQ (test_spy.get_error_counter (), 0 );
423463}
424464
425465// /////////////////////////////////////////////////////////////////
0 commit comments