summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/fileconfigmanager
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-04-04 19:23:13 +0000
committerGeir Storli <geirst@yahoo-inc.com>2017-04-05 07:49:16 +0000
commitae812c64492160223a0a3e674f38c2d5a59c2663 (patch)
tree75835e5e0e833a9c7cc3e2d4a853a489d5aaa202 /searchcore/src/tests/proton/documentdb/fileconfigmanager
parentd8b05c79c106204ee76726aff4d3f0cb84d8fc99 (diff)
Change schema::DataType and schema::CollectionType to enum class.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/fileconfigmanager')
-rw-r--r--searchcore/src/tests/proton/documentdb/fileconfigmanager/fileconfigmanager_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/documentdb/fileconfigmanager/fileconfigmanager_test.cpp b/searchcore/src/tests/proton/documentdb/fileconfigmanager/fileconfigmanager_test.cpp
index a4f4d729beb..579e33250b3 100644
--- a/searchcore/src/tests/proton/documentdb/fileconfigmanager/fileconfigmanager_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/fileconfigmanager/fileconfigmanager_test.cpp
@@ -16,6 +16,7 @@
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/testkit/test_kit.h>
+using namespace cloud::config::filedistribution;
using namespace config;
using namespace document;
using namespace proton;
@@ -23,7 +24,6 @@ using namespace search::index;
using namespace search;
using namespace vespa::config::search::core;
using namespace vespa::config::search;
-using namespace cloud::config::filedistribution;
using proton::matching::RankingConstants;
typedef DocumentDBConfigHelper DBCM;
@@ -45,12 +45,12 @@ Schema::SP
getSchema(int step)
{
Schema::SP schema(new Schema);
- schema->addIndexField(Schema::IndexField("foo1", schema::STRING));
+ schema->addIndexField(Schema::IndexField("foo1", schema::DataType::STRING));
if (step < 2) {
- schema->addIndexField(Schema::IndexField("foo2", schema::STRING));
+ schema->addIndexField(Schema::IndexField("foo2", schema::DataType::STRING));
}
if (step < 1) {
- schema->addIndexField(Schema::IndexField("foo3", schema::STRING));
+ schema->addIndexField(Schema::IndexField("foo3", schema::DataType::STRING));
}
return schema;
}
@@ -83,7 +83,7 @@ Schema
makeHistorySchema()
{
Schema hs;
- hs.addIndexField(Schema::IndexField("history", schema::STRING));
+ hs.addIndexField(Schema::IndexField("history", schema::DataType::STRING));
return hs;
}