diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-05-27 23:30:02 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-05-27 23:30:02 +0200 |
commit | e3e7cb89e112bbeed2b3e43798a16fe557a3992a (patch) | |
tree | 301df4396157da0479864bf08f1ec6d48f222b55 /include | |
parent | ae6e056a011fc16af67e8dc311c4ace902e163fb (diff) |
Add testsuite tests for UID generation
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 4 | ||||
-rw-r--r-- | include/testsuite.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index cabb24aa0..9c9609530 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -256,6 +256,8 @@ DEFINE_HANDLER1(IsSIDHandler, bool, const std::string&); DEFINE_HANDLER1(RehashHandler, void, const std::string&); DEFINE_HANDLER3(OnCheckExemptionHandler, ModResult, User*, Channel*, const std::string&); +class TestSuite; + /** The main class of the irc server. * This class contains instances of all the other classes in this software. * Amongst other things, it contains a ModeParser, a DNS object, a CommandParser @@ -855,6 +857,8 @@ class CoreExport InspIRCd { return this->ReadBuffer; } + + friend class TestSuite; }; ENTRYPOINT; diff --git a/include/testsuite.h b/include/testsuite.h index 618615dc9..f91e508c9 100644 --- a/include/testsuite.h +++ b/include/testsuite.h @@ -21,6 +21,7 @@ class TestSuite { + bool RealGenerateUIDTests(); public: TestSuite(); ~TestSuite(); @@ -29,6 +30,7 @@ class TestSuite bool DoWildTests(); bool DoCommaSepStreamTests(); bool DoSpaceSepStreamTests(); + bool DoGenerateUIDTests(); }; #endif |