summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf/tests
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2022-11-08 10:18:28 +0100
committerRazvan Becheriu <razvan@isc.org>2022-11-25 17:15:33 +0100
commite4e9d0e362781d405246287c556c1165949a2dd0 (patch)
tree362df1cdadf94035b3221350f335e683e0981f9b /src/bin/netconf/tests
parent[#2601] remove std:: prefix from .cc files (diff)
downloadkea-e4e9d0e362781d405246287c556c1165949a2dd0.tar.xz
kea-e4e9d0e362781d405246287c556c1165949a2dd0.zip
[#2601] fix doxygen and add override final
Diffstat (limited to 'src/bin/netconf/tests')
-rw-r--r--src/bin/netconf/tests/control_socket_unittests.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/netconf/tests/control_socket_unittests.cc b/src/bin/netconf/tests/control_socket_unittests.cc
index 10a5d2fa24..c5cd387a98 100644
--- a/src/bin/netconf/tests/control_socket_unittests.cc
+++ b/src/bin/netconf/tests/control_socket_unittests.cc
@@ -428,8 +428,7 @@ public:
/// @brief Create a new request.
///
/// @return Pointer to the new instance of the HttpRequest.
- virtual HttpRequestPtr
- createNewHttpRequest() const {
+ HttpRequestPtr createNewHttpRequest() const override final {
return (HttpRequestPtr(new PostHttpRequestJson()));
}
@@ -438,9 +437,9 @@ protected:
///
/// @param request Pointer to the HTTP request.
/// @return Pointer to the generated HTTP response.
- virtual HttpResponsePtr
+ HttpResponsePtr
createStockHttpResponse(const HttpRequestPtr& request,
- const HttpStatusCode& status_code) const {
+ const HttpStatusCode& status_code) const override final {
// Data is in the request context.
HttpVersion http_version(request->context()->http_version_major_,
request->context()->http_version_minor_);
@@ -504,7 +503,7 @@ class TestHttpResponseCreatorFactory : public HttpResponseCreatorFactory {
public:
/// @brief Creates @ref TestHttpResponseCreator instance.
- virtual HttpResponseCreatorPtr create() const {
+ HttpResponseCreatorPtr create() const override final {
HttpResponseCreatorPtr response_creator(new TestHttpResponseCreator());
return (response_creator);
}