summaryrefslogtreecommitdiffstats
path: root/config/src/tests/configagent/configagent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config/src/tests/configagent/configagent.cpp')
-rw-r--r--config/src/tests/configagent/configagent.cpp78
1 files changed, 65 insertions, 13 deletions
diff --git a/config/src/tests/configagent/configagent.cpp b/config/src/tests/configagent/configagent.cpp
index 0693c33467d..91b657b42f2 100644
--- a/config/src/tests/configagent/configagent.cpp
+++ b/config/src/tests/configagent/configagent.cpp
@@ -1,4 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#include <vespa/fastos/fastos.h>
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/config/config.h>
#include <vespa/config/raw/rawsource.h>
@@ -18,10 +19,25 @@ public:
: _key(key)
{ }
- const ConfigKey & getKey() const override { return _key; }
- bool abort() override { return false; }
- bool isAborted() const override { return false; }
- void setError(int errorCode) override { (void) errorCode; }
+ const ConfigKey & getKey() const override
+ {
+ return _key;
+ }
+
+ bool abort() override
+ {
+ return false;
+ }
+
+ bool isAborted() const override
+ {
+ return false;
+ }
+
+ void setError(int errorCode) override
+ {
+ (void) errorCode;
+ }
const ConfigKey _key;
};
@@ -41,15 +57,51 @@ public:
_isError(iserror)
{ }
- const ConfigKey& getKey() const override { return _key; }
- const ConfigValue & getValue() const override { return _value; }
- const ConfigState & getConfigState() const override { return _state; }
- bool hasValidResponse() const override { return _valid; }
- bool validateResponse() override { return _valid; }
- void fill() override { _fillCalled = true; }
- vespalib::string errorMessage() const override { return _errorMessage; }
- int errorCode() const override { return _errorCode; }
- bool isError() const override { return _isError; }
+ const ConfigKey& getKey() const override
+ {
+ return _key;
+ }
+
+ const ConfigValue & getValue() const override
+ {
+ return _value;
+ }
+
+ const ConfigState & getConfigState() const override
+ {
+ return _state;
+ }
+
+ bool hasValidResponse() const override
+ {
+ return _valid;
+ }
+
+ bool validateResponse() override
+ {
+ return _valid;
+ }
+
+ void fill() override
+ {
+ _fillCalled = true;
+ }
+
+ vespalib::string errorMessage() const override
+ {
+ return _errorMessage;
+ }
+
+ int errorCode() const override
+ {
+ return _errorCode;
+ }
+
+ bool isError() const override
+ {
+ return _isError;
+ }
+
const Trace & getTrace() const override { return _trace; }
const ConfigKey _key;