aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-06-15 12:10:48 +0200
committerTor Egge <Tor.Egge@online.no>2023-06-15 12:10:48 +0200
commit8e4fb9da1cae44d359d9d665252fd9b36077f5f3 (patch)
treec96e00bfbbd2bc28eb58da9f6490857bacae1f06 /vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp
parentb7fa88adf8cacacba2088d8532d79958182b1916 (diff)
Adjust DynamicArrayBufferType constructor signature to match
SmallArrayBufferType constructor signature.
Diffstat (limited to 'vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp')
-rw-r--r--vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp b/vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp
index d5244ae56aa..c2933dccf18 100644
--- a/vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp
+++ b/vespalib/src/tests/datastore/dynamic_array_buffer_type/dynamic_array_buffer_type_test.cpp
@@ -4,6 +4,7 @@
#include <vespa/vespalib/gtest/gtest.h>
#include <ostream>
+using vespalib::datastore::ArrayStoreConfig;
using vespalib::datastore::BufferTypeBase;
using vespalib::datastore::DynamicArrayBufferType;
using vespalib::datastore::EntryCount;
@@ -125,7 +126,7 @@ protected:
DynamicArrayBufferTypeTest::DynamicArrayBufferTypeTest()
: testing::Test(),
- _buffer_type(3, 0, 10, 0, 0.2),
+ _buffer_type(3, ArrayStoreConfig::AllocSpec(0, 10, 0, 0.2), {}),
_entry_size(_buffer_type.entry_size()),
_buf_size(2 * _entry_size),
_buf(std::make_unique<char[]>(_buf_size))
@@ -143,7 +144,7 @@ template <typename ElemT>
uint32_t
DynamicArrayBufferTypeTest::get_entry_size(uint32_t array_size)
{
- DynamicArrayBufferType<ElemT> my_buffer_type(array_size, 0, 10, 0, 0.2);
+ DynamicArrayBufferType<ElemT> my_buffer_type(array_size, ArrayStoreConfig::AllocSpec(0, 10, 0, 0.2), {});
return my_buffer_type.entry_size();
}