@@ -671,7 +671,7 @@ static void test_tx_publish(void)
671671 TEST_ASSERT_EQUAL (2000000 , frame -> deadline );
672672 TEST_ASSERT_EQUAL (udpard_prio_nominal , frame -> priority );
673673 // Verify the destination is the correct multicast endpoint
674- const udpard_udpip_ep_t expected_ep = make_topic_ep (123 );
674+ const udpard_udpip_ep_t expected_ep = udpard_make_subject_endpoint (123 );
675675 TEST_ASSERT_EQUAL (expected_ep .ip , frame -> destination .ip );
676676 TEST_ASSERT_EQUAL (expected_ep .port , frame -> destination .port );
677677 udpard_tx_pop (& tx , frame );
@@ -692,9 +692,9 @@ static void test_tx_p2p(void)
692692 const uint32_t enqueued = udpard_tx_p2p (& tx ,
693693 1000000 , // now
694694 2000000 , // deadline
695+ udpard_prio_high , // priority
695696 0xFEDCBA9876543210ULL , // remote_uid
696697 (udpard_udpip_ep_t ){ .ip = 0xC0A80101 , .port = 9999 },
697- udpard_prio_high , // priority
698698 0x0BADC0DE0BADC0DEULL , // transfer_id
699699 (udpard_bytes_t ){ .size = interstellar_war_size , .data = interstellar_war },
700700 true, // ack_required
@@ -800,9 +800,9 @@ static void test_tx_deadline_at_current_time(void)
800800 enqueued = udpard_tx_p2p (& tx ,
801801 2000000 , // now
802802 1999999 , // deadline in the past
803+ udpard_prio_high ,
803804 0xFEDCBA9876543210ULL ,
804805 (udpard_udpip_ep_t ){ .ip = 0xC0A80101 , .port = 9999 },
805- udpard_prio_high ,
806806 0x0BADC0DE0BADC0DEULL ,
807807 (udpard_bytes_t ){ .size = test_payload_size , .data = test_payload },
808808 false,
@@ -870,9 +870,9 @@ static void test_tx_invalid_params(void)
870870 udpard_tx_p2p (& tx ,
871871 1000000 ,
872872 2000000 ,
873+ udpard_prio_high ,
873874 0 , // remote_uid cannot be 0
874875 (udpard_udpip_ep_t ){ .ip = 0xC0A80101 , .port = 9999 },
875- udpard_prio_high ,
876876 0x0BADC0DE0BADC0DEULL ,
877877 (udpard_bytes_t ){ .size = 10 , .data = "test" },
878878 false,
@@ -881,9 +881,9 @@ static void test_tx_invalid_params(void)
881881 udpard_tx_p2p (& tx ,
882882 1000000 ,
883883 2000000 ,
884+ udpard_prio_high ,
884885 0xFEDCBA9876543210ULL ,
885886 (udpard_udpip_ep_t ){ .ip = 0 , .port = 9999 }, // ip cannot be 0
886- udpard_prio_high ,
887887 0x0BADC0DE0BADC0DEULL ,
888888 (udpard_bytes_t ){ .size = 10 , .data = "test" },
889889 false,
0 commit comments