summaryrefslogtreecommitdiffstats
path: root/juniper/src/test/mcandTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juniper/src/test/mcandTest.cpp')
-rw-r--r--juniper/src/test/mcandTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/juniper/src/test/mcandTest.cpp b/juniper/src/test/mcandTest.cpp
index 7f7d7d42100..b185707c1be 100644
--- a/juniper/src/test/mcandTest.cpp
+++ b/juniper/src/test/mcandTest.cpp
@@ -16,11 +16,11 @@
* ALL RIGHTS RESERVED
* </pre>
***************************************************************************/
-
-#include "mcandTest.h"
-
+#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
-LOG_SETUP(".mcandtest");
+LOG_SETUP("");
+#include "mcandTest.h"
+#include "testenv.h"
// Comment out cerr below to ignore unimplemented tests
#define NOTEST(name) \
@@ -405,13 +405,13 @@ struct MyTokenProcessor : public ITokenProcessor
Matcher &_m;
std::vector<size_t> _cands;
MyTokenProcessor(Matcher &m) : _m(m), _cands() {}
- void handle_token(Token &token) override {
+ virtual void handle_token(Token &token) override {
_m.handle_token(token);
const match_sequence *ms = _m.GetWorkSet();
_cands.push_back(ms[0].size());
LOG(info, "match_sequence[0].size(%zu)", _cands.back());
}
- void handle_end(Token &token) override {
+ virtual void handle_end(Token &token) override {
_m.handle_end(token);
}
};