summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-14 21:13:18 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-14 21:35:58 +0000
commit04465fd7fffc974cfdb767f966e92483cac381fb (patch)
tree3f902f2cc53f17d32b70ff1cff16860fd24d7a45 /searchlib/src/tests
parentcdb9ece95aeae9861ec5aad31c168575919ec346 (diff)
Move idestructorcallback.h to vespalib module and search::IDestructorCallback to vespalib::IdestructorCallback.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/diskindex/fusion/fusion_test.cpp2
-rw-r--r--searchlib/src/tests/memoryindex/field_index/field_index_test.cpp4
-rw-r--r--searchlib/src/tests/transactionlog/chunks_test.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
index 4c62140b731..ac7bfc63a15 100644
--- a/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
+++ b/searchlib/src/tests/diskindex/fusion/fusion_test.cpp
@@ -73,7 +73,7 @@ namespace {
void
myPushDocument(DocumentInverter &inv)
{
- inv.pushDocuments(std::shared_ptr<IDestructorCallback>());
+ inv.pushDocuments(std::shared_ptr<vespalib::IDestructorCallback>());
}
}
diff --git a/searchlib/src/tests/memoryindex/field_index/field_index_test.cpp b/searchlib/src/tests/memoryindex/field_index/field_index_test.cpp
index d7b515c29e0..0deb9893dae 100644
--- a/searchlib/src/tests/memoryindex/field_index/field_index_test.cpp
+++ b/searchlib/src/tests/memoryindex/field_index/field_index_test.cpp
@@ -416,7 +416,7 @@ myremove(uint32_t docId, DocumentInverter &inv,
{
inv.removeDocument(docId);
invertThreads.sync();
- inv.pushDocuments(std::shared_ptr<IDestructorCallback>());
+ inv.pushDocuments(std::shared_ptr<vespalib::IDestructorCallback>());
}
class MyDrainRemoves : IFieldIndexRemoveListener {
@@ -442,7 +442,7 @@ public:
void
myPushDocument(DocumentInverter &inv)
{
- inv.pushDocuments(std::shared_ptr<IDestructorCallback>());
+ inv.pushDocuments(std::shared_ptr<vespalib::IDestructorCallback>());
}
const FeatureStore *
diff --git a/searchlib/src/tests/transactionlog/chunks_test.cpp b/searchlib/src/tests/transactionlog/chunks_test.cpp
index a3cf9f8bd92..aeee8a7a374 100644
--- a/searchlib/src/tests/transactionlog/chunks_test.cpp
+++ b/searchlib/src/tests/transactionlog/chunks_test.cpp
@@ -77,7 +77,7 @@ TEST("test empty commitchunk") {
EXPECT_EQUAL(0u, cc.getNumCallBacks());
}
-struct Counter : public search::IDestructorCallback {
+struct Counter : public vespalib::IDestructorCallback {
std::atomic<uint32_t> & _counter;
Counter(std::atomic<uint32_t> & counter) noexcept : _counter(counter) { _counter++; }
~Counter() override { _counter--; }