4747#include "mock_FreeRTOS_IP_Private.h"
4848#include "mock_FreeRTOS_IP_Timers.h"
4949#include "mock_FreeRTOS_ARP.h"
50+ #include "mock_FreeRTOS_ND.h"
5051#include "mock_FreeRTOS_DHCP.h"
5152#include "mock_FreeRTOS_DHCPv6.h"
5253#include "mock_FreeRTOS_Routing.h"
@@ -489,11 +490,13 @@ void test_prvProcessNetworkDownEvent_Pass( void )
489490 xEndPoint .bits .bCallDownHook = pdFALSE_UNSIGNED ;
490491
491492 vIPSetARPTimerEnableState_Expect ( pdFALSE );
493+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
492494
493495 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
494496 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
495497
496498 FreeRTOS_ClearARP_ExpectAnyArgs ();
499+ FreeRTOS_ClearND_ExpectAnyArgs ();
497500
498501 vDHCPStop_Expect ( & xEndPoint );
499502
@@ -504,13 +507,15 @@ void test_prvProcessNetworkDownEvent_Pass( void )
504507 /* Run again to trigger a different path in the code. */
505508
506509 vIPSetARPTimerEnableState_Expect ( pdFALSE );
510+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
507511
508512 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
509513 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
510514
511515 vApplicationIPNetworkEventHook_Multi_Expect ( eNetworkDown , & xEndPoint );
512516
513517 FreeRTOS_ClearARP_Expect ( & xEndPoint );
518+ FreeRTOS_ClearND_Expect ( & xEndPoint );
514519
515520 vDHCPStop_Expect ( & xEndPoint );
516521
@@ -535,11 +540,13 @@ void test_prvProcessNetworkDownEvent_Fail( void )
535540 xEndPoint .bits .bWantDHCP = pdFALSE_UNSIGNED ;
536541
537542 vIPSetARPTimerEnableState_Expect ( pdFALSE );
543+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
538544
539545 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
540546 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
541547
542548 FreeRTOS_ClearARP_Expect ( & xEndPoint );
549+ FreeRTOS_ClearND_Expect ( & xEndPoint );
543550
544551 vIPNetworkUpCalls_Expect ( & xEndPoint );
545552
@@ -586,11 +593,13 @@ void test_prvProcessNetworkDownEvent_InterfaceInitFail( void )
586593 xEndPoint .bits .bCallDownHook = pdFALSE_UNSIGNED ;
587594
588595 vIPSetARPTimerEnableState_Expect ( pdFALSE );
596+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
589597
590598 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
591599 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
592600
593601 FreeRTOS_ClearARP_ExpectAnyArgs ();
602+ FreeRTOS_ClearND_ExpectAnyArgs ();
594603
595604 vDHCPStop_Expect ( & xEndPoint );
596605
@@ -616,6 +625,7 @@ void test_prvProcessNetworkDownEvent_PassDHCPv6( void )
616625 xEndPoint .bits .bCallDownHook = pdFALSE_UNSIGNED ;
617626
618627 vIPSetARPTimerEnableState_Expect ( pdFALSE );
628+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
619629
620630 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
621631
@@ -628,6 +638,7 @@ void test_prvProcessNetworkDownEvent_PassDHCPv6( void )
628638 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
629639
630640 FreeRTOS_ClearARP_ExpectAnyArgs ();
641+ FreeRTOS_ClearND_ExpectAnyArgs ();
631642
632643 vDHCPv6Stop_Expect ( & xEndPoint );
633644
@@ -653,6 +664,7 @@ void test_prvProcessNetworkDownEvent_PassRA( void )
653664 xEndPoint .bits .bCallDownHook = pdFALSE_UNSIGNED ;
654665
655666 vIPSetARPTimerEnableState_Expect ( pdFALSE );
667+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
656668
657669 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
658670
@@ -665,6 +677,7 @@ void test_prvProcessNetworkDownEvent_PassRA( void )
665677 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
666678
667679 FreeRTOS_ClearARP_ExpectAnyArgs ();
680+ FreeRTOS_ClearND_ExpectAnyArgs ();
668681
669682 vIPSetDHCP_RATimerEnableState_Expect ( & xEndPoint , pdFALSE );
670683
@@ -692,6 +705,7 @@ void test_prvProcessNetworkDownEvent_PassStaticIP( void )
692705 memcpy ( xEndPoint .ipv6_defaults .xIPAddress .ucBytes , xIPv6Address .ucBytes , ipSIZE_OF_IPv6_ADDRESS );
693706
694707 vIPSetARPTimerEnableState_Expect ( pdFALSE );
708+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
695709
696710 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
697711
@@ -704,6 +718,7 @@ void test_prvProcessNetworkDownEvent_PassStaticIP( void )
704718 FreeRTOS_NextEndPoint_IgnoreAndReturn ( NULL );
705719
706720 FreeRTOS_ClearARP_ExpectAnyArgs ();
721+ FreeRTOS_ClearND_ExpectAnyArgs ();
707722
708723 vIPNetworkUpCalls_Expect ( & xEndPoint );
709724
@@ -3128,6 +3143,7 @@ static void prvProcessNetworkDownEvent_Generic( const uint8_t * pucAddress,
31283143 }
31293144
31303145 vIPSetARPTimerEnableState_Expect ( pdFALSE );
3146+ vIPSetNDTimerEnableState_Expect ( pdFALSE );
31313147
31323148 FreeRTOS_FirstEndPoint_IgnoreAndReturn ( & xEndPoint );
31333149
@@ -3141,6 +3157,7 @@ static void prvProcessNetworkDownEvent_Generic( const uint8_t * pucAddress,
31413157
31423158
31433159 FreeRTOS_ClearARP_Expect ( & xEndPoint );
3160+ FreeRTOS_ClearND_Expect ( & xEndPoint );
31443161
31453162 vIPNetworkUpCalls_Expect ( & xEndPoint );
31463163
0 commit comments