summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute/attribute_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-04-20 12:26:32 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-04-20 12:26:32 +0000
commitd509b1c0892133074105a10924f5bf7e61eb2583 (patch)
treed40edb20d1fc696378cb889b93df899bf51f0123 /searchcore/src/tests/proton/attribute/attribute_test.cpp
parent6fbea2541823e0edb26bbdbab0631fb924d9ea94 (diff)
Remove recently added attribute specs from document db config.
Diffstat (limited to 'searchcore/src/tests/proton/attribute/attribute_test.cpp')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index 3eb69b045f9..114fd3b43bd 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -9,7 +9,6 @@ LOG_SETUP("attribute_test");
#include <vespa/document/update/arithmeticvalueupdate.h>
#include <vespa/searchcommon/attribute/attributecontent.h>
#include <vespa/searchcore/proton/attribute/attribute_collection_spec_factory.h>
-#include <vespa/searchcore/proton/attribute/attribute_specs.h>
#include <vespa/searchcore/proton/attribute/attribute_writer.h>
#include <vespa/searchcore/proton/attribute/attributemanager.h>
#include <vespa/searchcore/proton/attribute/filter_attribute_manager.h>
@@ -449,23 +448,24 @@ TEST_F("require that attribute adapter handles predicate update", Fixture)
struct AttributeCollectionSpecFixture
{
- AttributeSpecs _specs;
+ AttributesConfigBuilder _builder;
AttributeCollectionSpecFactory _factory;
AttributeCollectionSpecFixture(bool fastAccessOnly)
- : _specs(),
+ : _builder(),
_factory(search::GrowStrategy(), 100, fastAccessOnly)
{
addAttribute("a1", false);
addAttribute("a2", true);
}
void addAttribute(const vespalib::string &name, bool fastAccess) {
- AVConfig cfg;
- cfg.setFastAccess(fastAccess);
- _specs.emplace_back(name, cfg);
+ AttributesConfigBuilder::Attribute attr;
+ attr.name = name;
+ attr.fastaccess = fastAccess;
+ _builder.attribute.push_back(attr);
}
AttributeCollectionSpec::UP create(uint32_t docIdLimit,
search::SerialNum serialNum) {
- return _factory.create(_specs, docIdLimit, serialNum);
+ return _factory.create(_builder, docIdLimit, serialNum);
}
};