Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
|
#include <testfasthash.h>
Classes | |
struct | Item |
Public Member Functions | |
virtual HRESULT | Run () |
UT_DECLARE_TEST_NAME ("CTestFastHash") | |
Public Member Functions inherited from IUnitTest | |
virtual | ~IUnitTest () |
virtual const char * | GetName ()=0 |
Private Member Functions | |
HRESULT | AddRangeToSet (int first, int last) |
HRESULT | RemoveRangeFromSet (int first, int last) |
HRESULT | ValidateRangeInSet (int first, int last) |
HRESULT | ValidateRangeNotInSet (int first, int last) |
HRESULT | AddOne (int val) |
HRESULT | RemoveOne (int val) |
HRESULT | ValidateRangeInIndex (int first, int last) |
HRESULT | TestFastHash () |
HRESULT | TestRemove () |
HRESULT | TestIndexing () |
Private Attributes | |
FastHash< int, Item, c_maxsize, c_tablesize > | _hashtable |
Static Private Attributes | |
static const size_t | c_maxsize = 500 |
static const size_t | c_tablesize = 91 |
Definition at line 26 of file testfasthash.h.
|
private |
Definition at line 35 of file testfasthash.cpp.
|
private |
Definition at line 76 of file testfasthash.cpp.
|
private |
Definition at line 58 of file testfasthash.cpp.
|
private |
Definition at line 89 of file testfasthash.cpp.
|
virtual |
Implements IUnitTest.
Definition at line 22 of file testfasthash.cpp.
|
private |
Definition at line 176 of file testfasthash.cpp.
|
private |
|
private |
Definition at line 223 of file testfasthash.cpp.
CTestFastHash::UT_DECLARE_TEST_NAME | ( | "CTestFastHash" | ) |
|
private |
Definition at line 135 of file testfasthash.cpp.
|
private |
Definition at line 102 of file testfasthash.cpp.
|
private |
Definition at line 121 of file testfasthash.cpp.
|
private |
Definition at line 38 of file testfasthash.h.
|
staticprivate |
Definition at line 35 of file testfasthash.h.
|
staticprivate |
Definition at line 36 of file testfasthash.h.