1289999Sglebius/* AUTOGENERATED FILE. DO NOT EDIT. */
2289999Sglebius
3289999Sglebius//=======Test Runner Used To Run Each Test Below=====
4289999Sglebius#define RUN_TEST(TestFunc, TestLineNum) \
5289999Sglebius{ \
6289999Sglebius  Unity.CurrentTestName = #TestFunc; \
7289999Sglebius  Unity.CurrentTestLineNumber = TestLineNum; \
8289999Sglebius  Unity.NumberOfTests++; \
9289999Sglebius  if (TEST_PROTECT()) \
10289999Sglebius  { \
11289999Sglebius      setUp(); \
12289999Sglebius      TestFunc(); \
13289999Sglebius  } \
14289999Sglebius  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
15289999Sglebius  { \
16289999Sglebius    tearDown(); \
17289999Sglebius  } \
18289999Sglebius  UnityConcludeTest(); \
19289999Sglebius}
20289999Sglebius
21289999Sglebius//=======Automagically Detected Files To Include=====
22289999Sglebius#include "unity.h"
23289999Sglebius#include <setjmp.h>
24289999Sglebius#include <stdio.h>
25289999Sglebius#include "config.h"
26289999Sglebius#include "ntpd.h"
27289999Sglebius#include "ntp_lists.h"
28289999Sglebius
29289999Sglebius//=======External Functions This Runner Calls=====
30289999Sglebiusextern void setUp(void);
31289999Sglebiusextern void tearDown(void);
32289999Sglebiusextern void test_RestrictionsAreEmptyAfterInit(void);
33289999Sglebiusextern void test_ReturnsCorrectDefaultRestrictions(void);
34289999Sglebiusextern void test_HackingDefaultRestriction(void);
35289999Sglebiusextern void test_CantRemoveDefaultEntry(void);
36289999Sglebiusextern void test_AddingNewRestriction(void);
37289999Sglebiusextern void test_TheMostFittingRestrictionIsMatched(void);
38289999Sglebiusextern void test_DeletedRestrictionIsNotMatched(void);
39289999Sglebiusextern void test_RestrictUnflagWorks(void);
40289999Sglebius
41289999Sglebius
42289999Sglebius//=======Test Reset Option=====
43289999Sglebiusvoid resetTest(void);
44289999Sglebiusvoid resetTest(void)
45289999Sglebius{
46289999Sglebius  tearDown();
47289999Sglebius  setUp();
48289999Sglebius}
49289999Sglebius
50289999Sglebiuschar const *progname;
51289999Sglebius
52289999Sglebius
53289999Sglebius//=======MAIN=====
54289999Sglebiusint main(int argc, char *argv[])
55289999Sglebius{
56289999Sglebius  progname = argv[0];
57289999Sglebius  UnityBegin("ntp_restrict.c");
58293893Sglebius  RUN_TEST(test_RestrictionsAreEmptyAfterInit, 60);
59293893Sglebius  RUN_TEST(test_ReturnsCorrectDefaultRestrictions, 86);
60293893Sglebius  RUN_TEST(test_HackingDefaultRestriction, 97);
61293893Sglebius  RUN_TEST(test_CantRemoveDefaultEntry, 120);
62293893Sglebius  RUN_TEST(test_AddingNewRestriction, 131);
63293893Sglebius  RUN_TEST(test_TheMostFittingRestrictionIsMatched, 144);
64293893Sglebius  RUN_TEST(test_DeletedRestrictionIsNotMatched, 166);
65293893Sglebius  RUN_TEST(test_RestrictUnflagWorks, 190);
66289999Sglebius
67289999Sglebius  return (UnityEnd());
68289999Sglebius}
69