aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/attribute
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-12-21 10:33:01 +0000
committerGeir Storli <geirst@yahooinc.com>2022-12-21 10:59:44 +0000
commit111e8f006cb92b08f6894c716b6e8d5dd9e94c0c (patch)
tree3d596543b2dab4e77feace6098ddf6bc1e127dc8 /searchcore/src/tests/proton/attribute
parentbc97f528bf6ca32750cadb84901beee144c03e41 (diff)
Change from typedef to using in searchcore.
Diffstat (limited to 'searchcore/src/tests/proton/attribute')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp6
-rw-r--r--searchcore/src/tests/proton/attribute/attributeflush_test.cpp8
-rw-r--r--searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp2
-rw-r--r--searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp4
4 files changed, 10 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
index 8f409b3e31e..07167a91498 100644
--- a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp
@@ -72,9 +72,9 @@ using vespa::config::search::AttributesConfig;
using vespa::config::search::AttributesConfigBuilder;
using vespalib::eval::ValueType;
-typedef search::attribute::Config AVConfig;
-typedef proton::AttributeCollectionSpec::AttributeList AttrSpecList;
-typedef proton::AttributeCollectionSpec AttrMgrSpec;
+using AVConfig = search::attribute::Config;
+using AttrSpecList = proton::AttributeCollectionSpec::AttributeList;
+using AttrMgrSpec = proton::AttributeCollectionSpec;
namespace {
diff --git a/searchcore/src/tests/proton/attribute/attributeflush_test.cpp b/searchcore/src/tests/proton/attribute/attributeflush_test.cpp
index 7249476a907..b94df75c7be 100644
--- a/searchcore/src/tests/proton/attribute/attributeflush_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attributeflush_test.cpp
@@ -33,15 +33,15 @@ using namespace vespalib;
using search::index::DummyFileHeaderContext;
-typedef search::attribute::Config AVConfig;
-typedef search::attribute::BasicType AVBasicType;
-typedef search::attribute::CollectionType AVCollectionType;
+using AVConfig = search::attribute::Config;
+using AVBasicType = search::attribute::BasicType;
+using AVCollectionType = search::attribute::CollectionType;
using searchcorespi::IFlushTarget;
using searchcorespi::FlushStats;
using std::chrono::duration_cast;
using namespace std::literals;
-typedef std::shared_ptr<Gate> GateSP;
+using GateSP = std::shared_ptr<Gate>;
namespace proton {
diff --git a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp
index a7d41b6234c..bcd200cfd2f 100644
--- a/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attributes_state_explorer/attributes_state_explorer_test.cpp
@@ -86,7 +86,7 @@ struct AttributesStateExplorerTest : public ::testing::Test
};
-typedef std::vector<vespalib::string> StringVector;
+using StringVector = std::vector<vespalib::string>;
TEST_F(AttributesStateExplorerTest, require_that_attributes_are_exposed_as_children_names)
{
diff --git a/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp b/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp
index e831e8b2ac7..77135501b55 100644
--- a/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp
+++ b/searchcore/src/tests/proton/attribute/document_field_populator/document_field_populator_test.cpp
@@ -18,8 +18,8 @@ using namespace proton;
using namespace search;
using search::test::DocBuilder;
-typedef search::attribute::Config AVConfig;
-typedef search::attribute::BasicType AVBasicType;
+using AVConfig = search::attribute::Config;
+using AVBasicType = search::attribute::BasicType;
struct DocContext
{