]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_SBufDetailedStats.cc
Activate extra compiler checks (#667)
[thirdparty/squid.git] / src / tests / stub_SBufDetailedStats.cc
index adca4cb5649efbb70ea3f11ebdbb49c7c0062ed1..c9baed93cc1c0d4081dea31bcc755958cf906d2d 100644 (file)
@@ -7,15 +7,17 @@
  */
 
 #include "squid.h"
+#include "sbuf/DetailedStats.h"
 #include "sbuf/SBuf.h"
+#include "StatHist.h"
 
 #define STUB_API "sbuf/DetailedStats.cc"
 #include "tests/STUB.h"
 
-class StatHist;
+static StatHist s;
 
 void recordSBufSizeAtDestruct(SBuf::size_type) {} // STUB_NOP
-const StatHist * collectSBufDestructTimeStats() STUB_RETVAL(nullptr)
+StatHist &collectSBufDestructTimeStats() STUB_RETVAL(s)
 void recordMemBlobSizeAtDestruct(SBuf::size_type) {} // STUB_NOP
-const StatHist * collectMemBlobDestructTimeStats() STUB_RETVAL(nullptr)
+StatHist &collectMemBlobDestructTimeStats() STUB_RETVAL(s)