summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp')
-rw-r--r--searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp b/searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp
index e23c308050b..ddabed210d8 100644
--- a/searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp
+++ b/searchcore/src/tests/proton/attribute/imported_attributes_repo/imported_attributes_repo_test.cpp
@@ -7,6 +7,7 @@ LOG_SETUP("imported_attributes_repo_test");
#include <vespa/searchcommon/attribute/iattributevector.h>
#include <vespa/searchcore/proton/attribute/imported_attributes_repo.h>
#include <vespa/searchlib/attribute/imported_attribute_vector.h>
+#include <vespa/searchlib/attribute/imported_attribute_vector_factory.h>
#include <vespa/searchlib/attribute/reference_attribute.h>
using proton::ImportedAttributesRepo;
@@ -14,16 +15,17 @@ using search::AttributeVector;
using search::attribute::BasicType;
using search::attribute::Config;
using search::attribute::ImportedAttributeVector;
+using search::attribute::ImportedAttributeVectorFactory;
using search::attribute::ReferenceAttribute;
ImportedAttributeVector::SP
createAttr(const vespalib::string &name)
{
- return std::make_shared<ImportedAttributeVector>(name,
- ReferenceAttribute::SP(),
- AttributeVector::SP(),
- std::shared_ptr<search::IDocumentMetaStoreContext>(),
- false);
+ return ImportedAttributeVectorFactory::create(name,
+ ReferenceAttribute::SP(),
+ AttributeVector::SP(),
+ std::shared_ptr<search::IDocumentMetaStoreContext>(),
+ false);
}
struct Fixture {