Skip to content

Commit 66c4b13

Browse files
Astyle fixes
1 parent 1706843 commit 66c4b13

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

UNITTESTS/features/netsocket/InternetSocket/test_InternetSocket.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ TEST_F(TestInternetSocket, close_during_read)
162162
socket->add_reader();
163163
// The reader will be removed after we attempt to close the socket.
164164
auto delay = std::chrono::milliseconds(2);
165-
auto fut = std::async(std::launch::async, [&](){std::this_thread::sleep_for(delay); socket->rem_reader();});
165+
auto fut = std::async(std::launch::async, [&]() {
166+
std::this_thread::sleep_for(delay);
167+
socket->rem_reader();
168+
});
166169

167170
// close() will block until the other thread calls rem_reader()
168171
auto start = std::chrono::system_clock::now();

UNITTESTS/features/netsocket/SocketAddress/test_SocketAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ TEST_F(TestSocketAddress, bool_operator_ip6_true)
164164

165165
TEST_F(TestSocketAddress, bool_operator_ip6_false)
166166
{
167-
SocketAddress addr("0:0:0:0:0:0:0:0",80);
167+
SocketAddress addr("0:0:0:0:0:0:0:0", 80);
168168
EXPECT_FALSE(addr ? true : false);
169169
}
170170

UNITTESTS/features/netsocket/TCPSocket/test_TCPSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ TEST_F(TestTCPSocket, connect)
7777
stack.return_value = NSAPI_ERROR_OK;
7878
const SocketAddress a("127.0.0.1", 1024);
7979
EXPECT_EQ(socket->connect(a), NSAPI_ERROR_OK);
80-
EXPECT_EQ(socket->setsockopt(NSAPI_SOCKET,NSAPI_BIND_TO_DEVICE, "12345", 5), NSAPI_ERROR_UNSUPPORTED);
80+
EXPECT_EQ(socket->setsockopt(NSAPI_SOCKET, NSAPI_BIND_TO_DEVICE, "12345", 5), NSAPI_ERROR_UNSUPPORTED);
8181
EXPECT_EQ(socket->connect("127.0.0.1", 1024), NSAPI_ERROR_OK);
8282
}
8383

UNITTESTS/features/netsocket/UDPSocket/test_UDPSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ TEST_F(TestUDPSocket, sendto_addr_port)
7575
stack.return_value = NSAPI_ERROR_OK;
7676
EXPECT_EQ(socket->sendto("127.0.0.1", 0, 0, 0), 0);
7777

78-
EXPECT_EQ(socket->setsockopt(NSAPI_SOCKET,NSAPI_BIND_TO_DEVICE,"12324",5), NSAPI_ERROR_UNSUPPORTED);
78+
EXPECT_EQ(socket->setsockopt(NSAPI_SOCKET, NSAPI_BIND_TO_DEVICE, "12324", 5), NSAPI_ERROR_UNSUPPORTED);
7979
EXPECT_EQ(socket->sendto("127.0.0.1", 0, 0, 0), 0);
8080
}
8181

0 commit comments

Comments
 (0)