1290001Sglebius/* AUTOGENERATED FILE. DO NOT EDIT. */ 2290001Sglebius 3290001Sglebius//=======Test Runner Used To Run Each Test Below===== 4290001Sglebius#define RUN_TEST(TestFunc, TestLineNum) \ 5290001Sglebius{ \ 6290001Sglebius Unity.CurrentTestName = #TestFunc; \ 7290001Sglebius Unity.CurrentTestLineNumber = TestLineNum; \ 8290001Sglebius Unity.NumberOfTests++; \ 9290001Sglebius if (TEST_PROTECT()) \ 10290001Sglebius { \ 11290001Sglebius setUp(); \ 12290001Sglebius TestFunc(); \ 13290001Sglebius } \ 14290001Sglebius if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15290001Sglebius { \ 16290001Sglebius tearDown(); \ 17290001Sglebius } \ 18290001Sglebius UnityConcludeTest(); \ 19290001Sglebius} 20290001Sglebius 21290001Sglebius//=======Automagically Detected Files To Include===== 22290001Sglebius#include "unity.h" 23290001Sglebius#include <setjmp.h> 24290001Sglebius#include <stdio.h> 25290001Sglebius#include "config.h" 26290001Sglebius#include "ntpd.h" 27290001Sglebius#include "ntp_lists.h" 28290001Sglebius 29290001Sglebius//=======External Functions This Runner Calls===== 30290001Sglebiusextern void setUp(void); 31290001Sglebiusextern void tearDown(void); 32290001Sglebiusextern void test_RestrictionsAreEmptyAfterInit(void); 33290001Sglebiusextern void test_ReturnsCorrectDefaultRestrictions(void); 34290001Sglebiusextern void test_HackingDefaultRestriction(void); 35290001Sglebiusextern void test_CantRemoveDefaultEntry(void); 36290001Sglebiusextern void test_AddingNewRestriction(void); 37290001Sglebiusextern void test_TheMostFittingRestrictionIsMatched(void); 38290001Sglebiusextern void test_DeletedRestrictionIsNotMatched(void); 39290001Sglebiusextern void test_RestrictUnflagWorks(void); 40290001Sglebius 41290001Sglebius 42290001Sglebius//=======Test Reset Option===== 43290001Sglebiusvoid resetTest(void); 44290001Sglebiusvoid resetTest(void) 45290001Sglebius{ 46290001Sglebius tearDown(); 47290001Sglebius setUp(); 48290001Sglebius} 49290001Sglebius 50290001Sglebiuschar const *progname; 51290001Sglebius 52290001Sglebius 53290001Sglebius//=======MAIN===== 54290001Sglebiusint main(int argc, char *argv[]) 55290001Sglebius{ 56290001Sglebius progname = argv[0]; 57290001Sglebius UnityBegin("ntp_restrict.c"); 58293896Sglebius RUN_TEST(test_RestrictionsAreEmptyAfterInit, 60); 59293896Sglebius RUN_TEST(test_ReturnsCorrectDefaultRestrictions, 86); 60293896Sglebius RUN_TEST(test_HackingDefaultRestriction, 97); 61293896Sglebius RUN_TEST(test_CantRemoveDefaultEntry, 120); 62293896Sglebius RUN_TEST(test_AddingNewRestriction, 131); 63293896Sglebius RUN_TEST(test_TheMostFittingRestrictionIsMatched, 144); 64293896Sglebius RUN_TEST(test_DeletedRestrictionIsNotMatched, 166); 65293896Sglebius RUN_TEST(test_RestrictUnflagWorks, 190); 66290001Sglebius 67290001Sglebius return (UnityEnd()); 68290001Sglebius} 69