summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute/imported_attributes_context
diff options
context:
space:
mode:
authorHÃ¥kon Hallingstad <hakon@oath.com>2018-01-23 11:09:58 +0100
committerGitHub <noreply@github.com>2018-01-23 11:09:58 +0100
commitc2911c004dfc72677d348d137febb2339ec2ab18 (patch)
treedf8c064cfe520034207333c222e67b64e3509029 /searchcore/src/tests/proton/attribute/imported_attributes_context
parent10918d8a10c33e19c72eb60f3a2f1a3d30cb20b4 (diff)
Revert "Add imported tensor attribute vector"
Diffstat (limited to 'searchcore/src/tests/proton/attribute/imported_attributes_context')
-rw-r--r--searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
index 1bee7a79192..aac74e1583d 100644
--- a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
+++ b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
@@ -8,7 +8,6 @@ LOG_SETUP("imported_attributes_context_test");
#include <vespa/searchlib/attribute/attribute.h>
#include <vespa/searchlib/attribute/attributefactory.h>
#include <vespa/searchlib/attribute/imported_attribute_vector.h>
-#include <vespa/searchlib/attribute/imported_attribute_vector_factory.h>
#include <vespa/searchlib/test/mock_gid_to_lid_mapping.h>
#include <future>
@@ -18,7 +17,6 @@ using search::attribute::BasicType;
using search::attribute::Config;
using search::attribute::IAttributeVector;
using search::attribute::ImportedAttributeVector;
-using search::attribute::ImportedAttributeVectorFactory;
using search::attribute::ReferenceAttribute;
using search::attribute::test::MockGidToLidMapperFactory;
using generation_t = AttributeVector::generation_t;
@@ -74,11 +72,11 @@ struct Fixture {
{
}
Fixture &addAttribute(const vespalib::string &name) {
- auto attr = ImportedAttributeVectorFactory::create(name,
- createReferenceAttribute(name + "_ref"),
- createTargetAttribute(name + "_target"),
- std::shared_ptr<search::IDocumentMetaStoreContext>(),
- false);
+ auto attr = std::make_shared<ImportedAttributeVector>(name,
+ createReferenceAttribute(name + "_ref"),
+ createTargetAttribute(name + "_target"),
+ std::shared_ptr<search::IDocumentMetaStoreContext>(),
+ false);
repo.add(name, attr);
return *this;
}