@@ -296,7 +296,7 @@ TEST_F(single_harq_process_test, when_harq_is_allocated_then_harq_grant_params_h
296296 ASSERT_EQ (h_dl.get_grant_params ().tbs_bytes , pdsch_info.codewords [0 ].tb_size_bytes );
297297 ASSERT_EQ (h_dl.get_grant_params ().rbs .type1 (), pdsch_info.rbs .type1 ());
298298 ASSERT_EQ (h_dl.get_grant_params ().dci_cfg_type , dci_dl_rnti_config_type::c_rnti_f1_0);
299- ASSERT_EQ (h_ul.get_grant_params ().tbs_bytes , harq_ent.total_ul_bytes_waiting_crc ());
299+ ASSERT_EQ (h_ul.get_grant_params ().tbs_bytes , harq_ent.total_ul_bytes_waiting_ack ());
300300}
301301
302302TEST_F (single_harq_process_test, positive_ack_sets_harq_to_empty)
@@ -309,15 +309,15 @@ TEST_F(single_harq_process_test, positive_ack_sets_harq_to_empty)
309309 ASSERT_FALSE (h_ul.is_waiting_ack ());
310310 ASSERT_FALSE (h_ul.has_pending_retx ());
311311
312- ASSERT_EQ (harq_ent.total_ul_bytes_waiting_crc (), 0 );
312+ ASSERT_EQ (harq_ent.total_ul_bytes_waiting_ack (), 0 );
313313}
314314
315315TEST_F (single_harq_process_test, negative_ack_sets_harq_to_pending_retx)
316316{
317317 ASSERT_EQ (h_dl.dl_ack_info (mac_harq_ack_report_status::nack, 5 ), dl_harq_process_handle::status_update::nacked);
318318 ASSERT_FALSE (h_dl.is_waiting_ack ());
319319 ASSERT_TRUE (h_dl.has_pending_retx ());
320- ASSERT_EQ (harq_ent.find_ul_harq (current_slot + k2), h_ul);
320+ ASSERT_EQ (harq_ent.find_ul_harq_waiting_ack (current_slot + k2), h_ul);
321321 ASSERT_EQ (h_ul.ul_crc_info (false ), 0 );
322322 ASSERT_FALSE (h_ul.is_waiting_ack ());
323323 ASSERT_TRUE (h_ul.has_pending_retx ());
@@ -677,8 +677,8 @@ TEST_F(single_ue_harq_entity_test, when_max_retxs_reached_then_harq_entity_does_
677677 ASSERT_TRUE (h_dl.has_value ());
678678 ASSERT_TRUE (h_ul.has_value ());
679679 for (unsigned i = 0 ; i != max_retxs; ++i) {
680- ASSERT_EQ (harq_ent.find_dl_harq (current_slot + k1, 0 ), h_dl);
681- ASSERT_EQ (harq_ent.find_ul_harq (current_slot + k2), h_ul);
680+ ASSERT_EQ (harq_ent.find_dl_harq_waiting_ack (current_slot + k1, 0 ), h_dl);
681+ ASSERT_EQ (harq_ent.find_ul_harq_waiting_ack (current_slot + k2), h_ul);
682682 ASSERT_EQ (h_dl.value ().dl_ack_info (mac_harq_ack_report_status::nack, 5 ),
683683 dl_harq_process_handle::status_update::nacked);
684684 ASSERT_EQ (h_ul.value ().ul_crc_info (false ), 0 );
@@ -744,15 +744,15 @@ TEST_P(single_ue_harq_entity_2_bits_tester, handle_pucchs)
744744 auto params = GetParam ();
745745
746746 // First PUCCH, 2 HARQ bits, different indexes.
747- auto h_dl1 = harq_ent.find_dl_harq (pucch_slot, 0 );
748- auto h_dl2 = harq_ent.find_dl_harq (pucch_slot, 1 );
747+ auto h_dl1 = harq_ent.find_dl_harq_waiting_ack (pucch_slot, 0 );
748+ auto h_dl2 = harq_ent.find_dl_harq_waiting_ack (pucch_slot, 1 );
749749 h_dl1->dl_ack_info ((mac_harq_ack_report_status)params.ack [0 ][0 ], std::nullopt );
750750 h_dl2->dl_ack_info ((mac_harq_ack_report_status)params.ack [0 ][1 ], std::nullopt );
751751
752752 // Second PUCCH, 2 HARQ bits, different indexes.
753753 if (params.ack .size () > 1 ) {
754- h_dl1 = harq_ent.find_dl_harq (pucch_slot, 0 );
755- h_dl2 = harq_ent.find_dl_harq (pucch_slot, 1 );
754+ h_dl1 = harq_ent.find_dl_harq_waiting_ack (pucch_slot, 0 );
755+ h_dl2 = harq_ent.find_dl_harq_waiting_ack (pucch_slot, 1 );
756756 h_dl1->dl_ack_info ((mac_harq_ack_report_status)params.ack [1 ][0 ], std::nullopt );
757757 h_dl2->dl_ack_info ((mac_harq_ack_report_status)params.ack [1 ][1 ], std::nullopt );
758758 }
@@ -812,7 +812,7 @@ TEST_F(single_ue_harq_entity_harq_5bit_tester, when_5_harq_bits_are_acks_then_al
812812
813813 // ACK received.
814814 for (unsigned i = 0 ; i != active_harqs; ++i) {
815- auto h_dl = this ->harq_ent .find_dl_harq (pucch_slot, i);
815+ auto h_dl = this ->harq_ent .find_dl_harq_waiting_ack (pucch_slot, i);
816816 ASSERT_EQ (h_dl->dl_ack_info (mac_harq_ack_report_status::ack, std::nullopt ),
817817 dl_harq_process_handle::status_update::acked);
818818 }
@@ -840,7 +840,7 @@ TEST_F(single_ue_harq_entity_harq_5bit_tester, when_5_harq_bits_are_nacks_then_a
840840
841841 // NACK received.
842842 for (unsigned i = 0 ; i != active_harqs; ++i) {
843- auto h_dl_ack = this ->harq_ent .find_dl_harq (pucch_slot, i);
843+ auto h_dl_ack = this ->harq_ent .find_dl_harq_waiting_ack (pucch_slot, i);
844844 ASSERT_EQ (h_dl_ack->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
845845 dl_harq_process_handle::status_update::nacked);
846846 }
@@ -911,12 +911,14 @@ TEST_F(multi_ue_harq_manager_test, when_harq_entities_are_nacked_then_they_appea
911911 ASSERT_TRUE (cell_harqs.pending_ul_retxs ().empty ());
912912 ASSERT_EQ (cell_harqs.pending_dl_retxs ().begin (), cell_harqs.pending_dl_retxs ().end ());
913913
914- ASSERT_EQ (harq_ent1.find_dl_harq (current_slot + k1, 0 )->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
914+ ASSERT_EQ (harq_ent1.find_dl_harq_waiting_ack (current_slot + k1, 0 )
915+ ->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
915916 dl_harq_process_handle::status_update::nacked);
916- ASSERT_EQ (harq_ent1.find_ul_harq (current_slot + k2)->ul_crc_info (false ), 0 );
917- ASSERT_EQ (harq_ent2.find_dl_harq (current_slot + k1, 0 )->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
917+ ASSERT_EQ (harq_ent1.find_ul_harq_waiting_ack (current_slot + k2)->ul_crc_info (false ), 0 );
918+ ASSERT_EQ (harq_ent2.find_dl_harq_waiting_ack (current_slot + k1, 0 )
919+ ->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
918920 dl_harq_process_handle::status_update::nacked);
919- ASSERT_EQ (harq_ent2.find_ul_harq (current_slot + k2)->ul_crc_info (false ), 0 );
921+ ASSERT_EQ (harq_ent2.find_ul_harq_waiting_ack (current_slot + k2)->ul_crc_info (false ), 0 );
920922
921923 // HARQs are in the list of pending retxs.
922924 ASSERT_FALSE (cell_harqs.pending_dl_retxs ().empty ());
@@ -962,12 +964,14 @@ TEST_F(multi_ue_harq_manager_test, pending_harq_retxs_are_ordered_from_oldest_to
962964 ASSERT_TRUE (harq_ent2.alloc_dl_harq (current_slot, k1, max_retxs, 0 ).has_value ());
963965 ASSERT_TRUE (harq_ent1.alloc_ul_harq (current_slot + k2, max_retxs).has_value ());
964966
965- ASSERT_EQ (harq_ent1.find_dl_harq (current_slot + k1, 0 )->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
967+ ASSERT_EQ (harq_ent1.find_dl_harq_waiting_ack (current_slot + k1, 0 )
968+ ->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
966969 dl_harq_process_handle::status_update::nacked);
967- ASSERT_EQ (harq_ent2.find_dl_harq (current_slot + k1, 0 )->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
970+ ASSERT_EQ (harq_ent2.find_dl_harq_waiting_ack (current_slot + k1, 0 )
971+ ->dl_ack_info (mac_harq_ack_report_status::nack, std::nullopt ),
968972 dl_harq_process_handle::status_update::nacked);
969- ASSERT_EQ (harq_ent2.find_ul_harq (current_slot + k2)->ul_crc_info (false ), 0 );
970- ASSERT_EQ (harq_ent1.find_ul_harq (current_slot + k2)->ul_crc_info (false ), 0 );
973+ ASSERT_EQ (harq_ent2.find_ul_harq_waiting_ack (current_slot + k2)->ul_crc_info (false ), 0 );
974+ ASSERT_EQ (harq_ent1.find_ul_harq_waiting_ack (current_slot + k2)->ul_crc_info (false ), 0 );
971975
972976 unsigned count = 0 ;
973977 for (dl_harq_process_handle h : cell_harqs.pending_dl_retxs ()) {
@@ -1057,13 +1061,13 @@ TEST_F(single_ntn_ue_harq_process_test, harq_history_is_reachable_after_timeout)
10571061 ASSERT_FALSE (harq_ent.dl_harq (to_harq_id (0 )).has_value ());
10581062 ASSERT_FALSE (harq_ent.ul_harq (to_harq_id (0 )).has_value ());
10591063
1060- h_dl = harq_ent.find_dl_harq (uci_slot, 0 ).value ();
1061- h_ul = harq_ent.find_ul_harq (pusch_slot).value ();
1064+ h_dl = harq_ent.find_dl_harq_waiting_ack (uci_slot, 0 ).value ();
1065+ h_ul = harq_ent.find_ul_harq_waiting_ack (pusch_slot).value ();
10621066 ASSERT_FALSE (h_dl.empty () and h_ul.empty ());
10631067 ASSERT_EQ (h_dl.get_grant_params ().tbs_bytes , pdsch_info.codewords [0 ].tb_size_bytes );
10641068 ASSERT_EQ (h_ul.get_grant_params ().tbs_bytes , pusch_info.tb_size_bytes );
10651069
1066- ASSERT_EQ (h_ul.get_grant_params ().tbs_bytes , harq_ent.total_ul_bytes_waiting_crc ());
1070+ ASSERT_EQ (h_ul.get_grant_params ().tbs_bytes , harq_ent.total_ul_bytes_waiting_ack ());
10671071}
10681072
10691073TEST_F (single_ntn_ue_harq_process_test, when_harq_gets_acked_then_it_reports_the_correct_tbs)
@@ -1075,12 +1079,12 @@ TEST_F(single_ntn_ue_harq_process_test, when_harq_gets_acked_then_it_reports_the
10751079 run_slot ();
10761080 }
10771081
1078- h_ul = harq_ent.find_ul_harq (pusch_slot).value ();
1079- ASSERT_EQ (harq_ent.total_ul_bytes_waiting_crc (), pusch_info.tb_size_bytes );
1082+ h_ul = harq_ent.find_ul_harq_waiting_ack (pusch_slot).value ();
1083+ ASSERT_EQ (harq_ent.total_ul_bytes_waiting_ack (), pusch_info.tb_size_bytes );
10801084 ASSERT_EQ (h_ul.ul_crc_info (true ), pusch_info.tb_size_bytes );
1081- ASSERT_EQ (harq_ent.total_ul_bytes_waiting_crc (), 0 );
1085+ ASSERT_EQ (harq_ent.total_ul_bytes_waiting_ack (), 0 );
10821086
1083- h_dl = harq_ent.find_dl_harq (uci_slot, 0 ).value ();
1087+ h_dl = harq_ent.find_dl_harq_waiting_ack (uci_slot, 0 ).value ();
10841088 ASSERT_EQ (h_dl.dl_ack_info (mac_harq_ack_report_status::ack, std::nullopt ),
10851089 dl_harq_process_handle::status_update::acked);
10861090 ASSERT_EQ (h_dl.get_grant_params ().tbs_bytes , pdsch_info.codewords [0 ].tb_size_bytes );
0 commit comments