SetMockTime() for cleaner unit testing

This commit is contained in:
Gavin Andresen
2011-09-15 08:55:15 -04:00
parent 700f942692
commit 54d02f158d
2 changed files with 10 additions and 0 deletions

View File

@@ -199,6 +199,7 @@ void ShrinkDebugFile();
int GetRandInt(int nMax);
uint64 GetRand(uint64 nMax);
int64 GetTime();
void SetMockTime(int64 nMockTimeIn);
int64 GetAdjustedTime();
void AddTimeData(unsigned int ip, int64 nTime);
std::string FormatFullVersion();