From c41399ef8e3390855a7c13df1c201fa7ea8cae8f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:33:03 +0000 Subject: [PATCH] style: clang-tidy auto fixes (#1778) Fixes #1777. --- src/app/ClioApplication.cpp | 10 ---------- tests/unit/app/WebHandlersTests.cpp | 1 - tests/unit/web/ng/ResponseTests.cpp | 8 ++++---- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/app/ClioApplication.cpp b/src/app/ClioApplication.cpp index c06494765..b2f54e1ae 100644 --- a/src/app/ClioApplication.cpp +++ b/src/app/ClioApplication.cpp @@ -27,7 +27,6 @@ #include "etl/NetworkValidatedLedgers.hpp" #include "feed/SubscriptionManager.hpp" #include "rpc/Counters.hpp" -#include "rpc/Errors.hpp" #include "rpc/RPCEngine.hpp" #include "rpc/WorkQueue.hpp" #include "rpc/common/impl/HandlerProvider.hpp" @@ -38,25 +37,16 @@ #include "web/AdminVerificationStrategy.hpp" #include "web/RPCServerHandler.hpp" #include "web/Server.hpp" -#include "web/SubscriptionContextInterface.hpp" #include "web/dosguard/DOSGuard.hpp" #include "web/dosguard/IntervalSweepHandler.hpp" #include "web/dosguard/WhitelistHandler.hpp" -#include "web/ng/Connection.hpp" #include "web/ng/RPCServerHandler.hpp" -#include "web/ng/Request.hpp" -#include "web/ng/Response.hpp" #include "web/ng/Server.hpp" #include -#include -#include -#include -#include #include #include -#include #include #include #include diff --git a/tests/unit/app/WebHandlersTests.cpp b/tests/unit/app/WebHandlersTests.cpp index 4c5e6b34d..c77a22df2 100644 --- a/tests/unit/app/WebHandlersTests.cpp +++ b/tests/unit/app/WebHandlersTests.cpp @@ -42,7 +42,6 @@ #include #include -#include #include #include #include diff --git a/tests/unit/web/ng/ResponseTests.cpp b/tests/unit/web/ng/ResponseTests.cpp index 6e2e1021b..0dc2b67fc 100644 --- a/tests/unit/web/ng/ResponseTests.cpp +++ b/tests/unit/web/ng/ResponseTests.cpp @@ -133,8 +133,8 @@ TEST_F(ResponseTest, asConstBufferJson) TEST_F(ResponseTest, createFromStringAndConnection) { - util::TagDecoratorFactory tagDecoratorFactory{util::Config{}}; - StrictMockConnection connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory}; + util::TagDecoratorFactory const tagDecoratorFactory{util::Config{}}; + StrictMockConnection const connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory}; std::string const responseMessage = "response message"; EXPECT_CALL(connection, wasUpgraded()).WillOnce(testing::Return(false)); @@ -150,8 +150,8 @@ TEST_F(ResponseTest, createFromStringAndConnection) TEST_F(ResponseTest, createFromJsonAndConnection) { - util::TagDecoratorFactory tagDecoratorFactory{util::Config{}}; - StrictMockConnection connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory}; + util::TagDecoratorFactory const tagDecoratorFactory{util::Config{}}; + StrictMockConnection const connection{"some ip", boost::beast::flat_buffer{}, tagDecoratorFactory}; boost::json::object const responseMessage{{"key", "value"}}; EXPECT_CALL(connection, wasUpgraded()).WillOnce(testing::Return(false));