From: Francesco Chemolli Date: Thu, 15 Dec 2011 07:01:07 +0000 (+0100) Subject: Updated (and made use of) stub_StatHist X-Git-Tag: BumpSslServerFirst.take05~12^2~120^2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=151ce8610ba28c0a4904554c3a612063c82992e3;p=thirdparty%2Fsquid.git Updated (and made use of) stub_StatHist --- diff --git a/src/Makefile.am b/src/Makefile.am index 3f1ee79921..7c3ffabe30 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1088,7 +1088,6 @@ tests_testHttpReply_SOURCES=\ StatCounters.h \ StatCounters.cc \ StatHist.h \ - StatHist.cc \ tests/stub_StatHist.cc \ tests/stub_store.cc \ tests/stub_store_stats.cc \ diff --git a/src/StatHist.h b/src/StatHist.h index 9e56a2de09..0b6ce1d05a 100644 --- a/src/StatHist.h +++ b/src/StatHist.h @@ -101,7 +101,6 @@ protected: }; /* StatHist */ -void statHistCount(StatHist * H, double val); double statHistDeltaMedian(const StatHist & A, const StatHist & B); double statHistDeltaPctile(const StatHist & A, const StatHist & B, double pctile); StatHistBinDumper statHistEnumDumper; diff --git a/src/tests/stub_StatHist.cc b/src/tests/stub_StatHist.cc index 07f1b4cd3c..b75787cb25 100644 --- a/src/tests/stub_StatHist.cc +++ b/src/tests/stub_StatHist.cc @@ -1,10 +1,24 @@ -#include "squid.h" - -// for StatHist definitions +#include "config.h" +#include "STUB.h" #include "StatHist.h" +#define STUB_API "StatHist.cc" + +void +StatHist::init(int capacity_, hbase_f * val_in_, hbase_f * val_out_, double min_, double max_) +{} + +StatHist::~StatHist() +{} + +void +StatHist::enumInit(int last_enum) +{} + +void +StatHist::count(double val) +{} + void -statHistEnumInit(StatHist * H, int last_enum) -{ -//NO-OP fatal("statHistEnumInit: Not implemented"); -} +StatHist::dump(StoreEntry * sentry, StatHistBinDumper * bd) const +{}