aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/tests/api
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 13:22:15 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-08 13:22:15 +0000
commit68f3ef41f603a17bca17788e99a9928bb540ae24 (patch)
treef2b89dbde4d0f54cb6170de69a2f79395366b42a /config/src/tests/api
parentb6a0b4fcfa93cfd9833dd9ee1ea8c2014abfe0f1 (diff)
Use std::mutex over vespalib::Lock and reduce code visibility.
Diffstat (limited to 'config/src/tests/api')
-rw-r--r--config/src/tests/api/api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/src/tests/api/api.cpp b/config/src/tests/api/api.cpp
index 0af2b848ea5..a48f36aea9a 100644
--- a/config/src/tests/api/api.cpp
+++ b/config/src/tests/api/api.cpp
@@ -1,13 +1,14 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/config/config.h>
+#include <vespa/config/common/configcontext.h>
#include <config-my.h>
using namespace config;
TEST("require that can subscribe with empty config id") {
ConfigSet set;
- ConfigContext::SP ctx(new ConfigContext(set));
+ auto ctx = std::make_shared<ConfigContext>(set);
MyConfigBuilder builder;
builder.myField = "myfoo";
set.addBuilder("", &builder);