31 using namespace pwiz::util;
 
   42     :   name_(name), count_(0) 
 
   53     size_t count()
 const {
return count_;}
 
   66     :   cancelIndex_(cancelIndex)
 
   90     if (
os_) *
os_ << 
"test()\n";
 
  104     size_t iterationCount = 24;
 
  105     for (
size_t i=0; i<iterationCount; i++)
 
  121     if (
os_) *
os_ << 
"testCancel()\n";
 
  137     bool canceled = 
false;
 
  139     size_t iterationCount = 24;
 
  140     for (
size_t i=0; i<iterationCount; i++)
 
  174         throw runtime_error(
"bad");
 
  181     if (
os_) *
os_ << 
"testRemove()\n";
 
  205         if (e.what() == string(
"bad")) caught = 
true;
 
  221     if (
os_) *
os_ << 
"testTime()\n";
 
  234     const double iterationDuration = 5.0;
 
  239         if (difftime(now, start) > iterationDuration) 
break;
 
  248 int main(
int argc, 
char* argv[])
 
  254         if (argc>1 && !strcmp(argv[1],
"-v")) 
os_ = &cout;