FileAnalysis: add more unit tests.

This commit is contained in:
Jon Siwek 2013-03-20 12:47:45 -05:00
parent 661677d452
commit 1ef7465e30
13 changed files with 521 additions and 5 deletions

View file

@ -3,6 +3,14 @@
using namespace file_analysis;
InfoTimer::InfoTimer(double t, const FileID& id, double interval)
: Timer(t + interval, TIMER_FILE_ANALYSIS_INACTIVITY), file_id(id)
{
DBG_LOG(DBG_FILE_ANALYSIS, "New %f second timeout timer for %s",
file_id.c_str(), interval);
}
void InfoTimer::Dispatch(double t, int is_expire)
{
Info* info = file_mgr->Lookup(file_id);

View file

@ -13,8 +13,7 @@ namespace file_analysis {
class InfoTimer : public Timer {
public:
InfoTimer(double t, const FileID& id, double interval)
: Timer(t + interval, TIMER_FILE_ANALYSIS_INACTIVITY), file_id(id) {}
InfoTimer(double t, const FileID& id, double interval);
/**
* Check inactivity of file_analysis::Info corresponding to #file_id,