aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute/imported_attributes_repo
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-01-19 13:11:59 +0000
committerTor Egge <Tor.Egge@oath.com>2018-01-22 12:17:40 +0000
commit8deb17159a4be4666b4220896c26143c1d6234b8 (patch)
tree42d68834ac0abe80c848e2072d90985954fbab03 /searchcore/src/tests/proton/attribute/imported_attributes_repo
parent4148debe89932119346b102a81164921af007d00 (diff)
Add imported tensor attribute vector.
Diffstat (limited to 'searchcore/src/tests/proton/attribute/imported_attributes_repo')
-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 {