clang-format-11: reformat
The .clang-format file here is an old version of the common one.
Upgrade to the latest and reformat.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic87853e6004d2d5ad6645a3ece8c0c87ccc96efd
diff --git a/test/test_snmp_conf_manager.cpp b/test/test_snmp_conf_manager.cpp
index 6cb2a53..bcf89e7 100644
--- a/test/test_snmp_conf_manager.cpp
+++ b/test/test_snmp_conf_manager.cpp
@@ -1,10 +1,10 @@
#include "snmp_conf_manager.hpp"
-
#include "xyz/openbmc_project/Common/error.hpp"
-#include <gtest/gtest.h>
#include <sdbusplus/bus.hpp>
+#include <gtest/gtest.h>
+
namespace phosphor
{
namespace network
@@ -40,14 +40,14 @@
return manager.client(ipaddress, port);
}
- ClientList &getSNMPClients()
+ ClientList& getSNMPClients()
{
return manager.clients;
}
- bool isClientExist(const std::string &ipaddress)
+ bool isClientExist(const std::string& ipaddress)
{
- for (const auto &val : manager.clients)
+ for (const auto& val : manager.clients)
{
if (val.second.get()->address() == ipaddress)
{
@@ -59,7 +59,7 @@
void deleteSNMPClient(std::string ipaddress)
{
- for (const auto &val : manager.clients)
+ for (const auto& val : manager.clients)
{
if (val.second.get()->address() == ipaddress)
{
@@ -80,7 +80,7 @@
EXPECT_EQ(path, expectedPath);
// check whether the client created
- auto &clients = getSNMPClients();
+ auto& clients = getSNMPClients();
EXPECT_EQ(1, clients.size());
EXPECT_EQ(true, isClientExist("192.168.1.1"));
}
@@ -98,7 +98,7 @@
EXPECT_EQ(path, expectedPath);
// check both the clients get created
- auto &clients = getSNMPClients();
+ auto& clients = getSNMPClients();
EXPECT_EQ(2, clients.size());
EXPECT_EQ(true, isClientExist("192.168.1.1"));
@@ -118,7 +118,7 @@
createSNMPClient("192.168.1.1", 24);
createSNMPClient("192.168.1.2", 24);
- auto &clients = getSNMPClients();
+ auto& clients = getSNMPClients();
EXPECT_EQ(2, clients.size());
deleteSNMPClient("192.168.1.1");