summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-08-18 15:06:42 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-08-18 15:06:42 +0200
commit2e5456028b6a489cbcd2b07641bb2d171469cf73 (patch)
tree851db179c0621986ad73c182e95a8059478feb44 /searchlib
parent8721bdaf57d42e397e895c3ee929eb3afda6e0da (diff)
Include what you need.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/postinglistbm/andstress.cpp9
-rw-r--r--searchlib/src/tests/postinglistbm/andstress.h19
2 files changed, 11 insertions, 17 deletions
diff --git a/searchlib/src/tests/postinglistbm/andstress.cpp b/searchlib/src/tests/postinglistbm/andstress.cpp
index 183cec6bbf1..bdf90fb7732 100644
--- a/searchlib/src/tests/postinglistbm/andstress.cpp
+++ b/searchlib/src/tests/postinglistbm/andstress.cpp
@@ -1,7 +1,5 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/log/log.h>
-LOG_SETUP(".andstress");
#include "andstress.h"
#include <vector>
@@ -14,14 +12,17 @@ LOG_SETUP(".andstress");
#include <vespa/searchlib/test/fakedata/fakezcfilterocc.h>
#include <vespa/searchlib/test/fakedata/fakezcbfilterocc.h>
#include <vespa/searchlib/test/fakedata/fpfactory.h>
+#include <vespa/fastos/thread.h>
+
+#include <vespa/log/log.h>
+LOG_SETUP(".andstress");
using search::fef::TermFieldMatchData;
using search::fef::TermFieldMatchDataArray;
using search::queryeval::SearchIterator;
using namespace search::fakedata;
-namespace postinglistbm
-{
+namespace postinglistbm {
class AndStressWorker;
diff --git a/searchlib/src/tests/postinglistbm/andstress.h b/searchlib/src/tests/postinglistbm/andstress.h
index b752e602f5d..07e344f3549 100644
--- a/searchlib/src/tests/postinglistbm/andstress.h
+++ b/searchlib/src/tests/postinglistbm/andstress.h
@@ -1,23 +1,17 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
-
#include <vector>
-namespace search
-{
-class Rand48;
-
-namespace fakedata
-{
+#include <string>
-class FakeWordSet;
+namespace search {
+class Rand48;
-}
+namespace fakedata { class FakeWordSet; }
}
-namespace postinglistbm
-{
+namespace postinglistbm {
class AndStress
{
@@ -39,5 +33,4 @@ public:
bool unpack);
};
-} // namespace postinglistbm
-
+}