diff options
Diffstat (limited to 'staging_vespalib/src/tests/state_server/state_server_test.cpp')
-rw-r--r-- | staging_vespalib/src/tests/state_server/state_server_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/staging_vespalib/src/tests/state_server/state_server_test.cpp b/staging_vespalib/src/tests/state_server/state_server_test.cpp index a7b72cd505e..5903970b740 100644 --- a/staging_vespalib/src/tests/state_server/state_server_test.cpp +++ b/staging_vespalib/src/tests/state_server/state_server_test.cpp @@ -117,6 +117,7 @@ TEST_FFFF("require that handler is selected based on longest matching url prefix } struct EchoHost : JsonGetHandler { + ~EchoHost() override; vespalib::string get(const vespalib::string &host, const vespalib::string &, const std::map<vespalib::string,vespalib::string> &) const override { @@ -124,6 +125,8 @@ struct EchoHost : JsonGetHandler { } }; +EchoHost::~EchoHost() = default; + TEST_FF("require that host is passed correctly", EchoHost(), HttpServer(0)) { auto token = f2.repo().bind(my_path, f1); EXPECT_EQUAL(make_string("%s:%d", HostName::get().c_str(), f2.port()), f2.host()); @@ -140,6 +143,7 @@ struct SamplingHandler : JsonGetHandler { mutable vespalib::string my_host; mutable vespalib::string my_path; mutable std::map<vespalib::string,vespalib::string> my_params; + ~SamplingHandler() override; vespalib::string get(const vespalib::string &host, const vespalib::string &path, const std::map<vespalib::string,vespalib::string> ¶ms) const override { @@ -153,6 +157,8 @@ struct SamplingHandler : JsonGetHandler { } }; +SamplingHandler::~SamplingHandler() = default; + TEST_FF("require that request parameters can be inspected", SamplingHandler(), HttpServer(0)) { auto token = f2.repo().bind("/foo", f1); @@ -361,6 +367,7 @@ TEST_FFFFF("require that custom handlers can be added to the state server", } struct EchoConsumer : MetricsProducer { + ~EchoConsumer() override; vespalib::string getMetrics(const vespalib::string &consumer) override { return "[\"" + consumer + "\"]"; } @@ -369,6 +376,8 @@ struct EchoConsumer : MetricsProducer { } }; +EchoConsumer::~EchoConsumer() = default; + TEST_FFFF("require that empty v1 metrics consumer defaults to 'statereporter'", SimpleHealthProducer(), EchoConsumer(), SimpleComponentConfigProducer(), StateApi(f1, f2, f3)) |