Skip to content

Commit 194fa12

Browse files
committed
Update recently added previous macro name uses in tests
1 parent 8cef190 commit 194fa12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+74
-74
lines changed

TESTS/netsocket/tcp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
Timer tc_bucket; // Timer to limit a test cases run time
3838
}
3939

40-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
40+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4141
mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4242
#endif
4343

@@ -126,7 +126,7 @@ int split2half_rmng_tcp_test_time()
126126
return (tcp_global::TESTS_TIMEOUT - tc_bucket.read()) / 2;
127127
}
128128

129-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
129+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
130130
int fetch_stats()
131131
{
132132
return SocketStats::mbed_stats_socket_get_each(&tcp_stats[0], MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT);

TESTS/netsocket/tcp/tcp_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len);
2525
nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock);
2626
nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock);
2727

28-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
28+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
2929
extern mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
3030
int fetch_stats(void);
3131
#endif

TESTS/netsocket/tcp/tcpsocket_bind_address.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -49,7 +49,7 @@ void TCPSOCKET_BIND_ADDRESS()
4949

5050
delete sock;
5151

52-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
52+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5353
count = fetch_stats();
5454
for (int j = 0; j < count; j++) {
5555
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_invalid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_INVALID()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -55,7 +55,7 @@ void TCPSOCKET_BIND_ADDRESS_INVALID()
5555

5656
delete sock;
5757

58-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
58+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5959
count = fetch_stats();
6060
for (int j = 0; j < count; j++) {
6161
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_null.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_NULL()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_ADDRESS_NULL()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_PORT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_ADDRESS_PORT()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_PORT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_PORT()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_port_fail.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_PORT_FAIL()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -58,7 +58,7 @@ void TCPSOCKET_BIND_PORT_FAIL()
5858
delete sock;
5959
delete sock2;
6060

61-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
61+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
6262
count = fetch_stats();
6363
for (int j = 0; j < count; j++) {
6464
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_unopened.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_UNOPENED()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -47,7 +47,7 @@ void TCPSOCKET_BIND_UNOPENED()
4747

4848
delete sock;
4949

50-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
50+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5151
count = fetch_stats();
5252
for (int j = 0; j < count; j++) {
5353
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_wrong_type.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_WRONG_TYPE()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -57,7 +57,7 @@ void TCPSOCKET_BIND_WRONG_TYPE()
5757

5858
delete sock;
5959

60-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
60+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
6161
count = fetch_stats();
6262
for (int j = 0; j < count; j++) {
6363
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

0 commit comments

Comments
 (0)