aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-03-07 13:50:41 +0000
committerGeir Storli <geirst@yahoo-inc.com>2017-03-07 13:50:41 +0000
commitf6c8ae09fc5959124408fcf1025d66a52c8be84d (patch)
tree93bcddbe4236a966ed9a1438eafadb435da7a3c3 /searchcore/src/tests/proton/documentdb/documentdb_test.cpp
parent12d429744ccdf13c2ff5aa6d343b7b823d93b33d (diff)
Rename *referent* -> *reference* to align with naming elsewhere (e.g. config-model).
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdb_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdb_test.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
index 020f7696a7a..473fcba8051 100644
--- a/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdb_test.cpp
@@ -14,8 +14,8 @@
#include <vespa/searchcore/proton/server/memoryconfigstore.h>
#include <vespa/searchcore/proton/metrics/job_tracked_flush_target.h>
#include <vespa/searchcore/proton/metrics/metricswireservice.h>
-#include <vespa/searchcore/proton/reference/document_db_referent_registry.h>
-#include <vespa/searchcore/proton/reference/i_document_db_referent.h>
+#include <vespa/searchcore/proton/reference/document_db_reference_registry.h>
+#include <vespa/searchcore/proton/reference/i_document_db_reference.h>
#include <vespa/searchcorespi/index/indexflushtarget.h>
#include <vespa/searchlib/index/dummyfileheadercontext.h>
#include <vespa/searchlib/transactionlog/translogserver.h>
@@ -56,13 +56,13 @@ public:
struct MyDBOwner : public DummyDBOwner
{
- std::shared_ptr<DocumentDBReferentRegistry> _registry;
+ std::shared_ptr<DocumentDBReferenceRegistry> _registry;
MyDBOwner()
: DummyDBOwner(),
- _registry(std::make_shared<DocumentDBReferentRegistry>())
+ _registry(std::make_shared<DocumentDBReferenceRegistry>())
{
}
- std::shared_ptr<IDocumentDBReferentRegistry> getDocumentDBReferentRegistry() const override {
+ std::shared_ptr<IDocumentDBReferenceRegistry> getDocumentDBReferenceRegistry() const override {
return _registry;
}
};
@@ -234,12 +234,12 @@ TEST_F("require that session manager can be explored", Fixture)
EXPECT_TRUE(DocumentDBExplorer(f._db).get_child("session").get() != nullptr);
}
-TEST_F("require that document db registers referent", Fixture)
+TEST_F("require that document db registers reference", Fixture)
{
auto &registry = f._myDBOwner._registry;
- auto referent = registry->get("typea");
- EXPECT_TRUE(referent.get() != nullptr);
- auto attr = referent->getAttribute("attr1");
+ auto reference = registry->get("typea");
+ EXPECT_TRUE(reference.get() != nullptr);
+ auto attr = reference->getAttribute("attr1");
EXPECT_TRUE(attr.get() != nullptr);
EXPECT_EQUAL(search::attribute::BasicType::INT32, attr->getBasicType());
}