diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/CMakeLists.txt index 98da637f74f..daef2483958 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/CMakeLists.txt @@ -22,7 +22,9 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-netsocket mbed-headers-cellular mbed-stubs diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/CMakeLists.txt index 311aa7918fe..96f1335c200 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/CMakeLists.txt @@ -6,31 +6,26 @@ set(TEST_NAME netsocket-dtls-socket-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 ) target_sources(${TEST_NAME} PRIVATE - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetDatagramSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/UDPSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/DTLSSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/DTLSSocketWrapper.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TLSSocketWrapper.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_DTLSSocket.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/CMakeLists.txt index ce9bc9dc5ea..674e3d3d1fc 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/CMakeLists.txt @@ -6,30 +6,25 @@ set(TEST_NAME netsocket-dtls-socket-wrapper-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 ) target_sources(${TEST_NAME} PRIVATE - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetDatagramSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/UDPSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/DTLSSocketWrapper.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TLSSocketWrapper.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_DTLSSocketWrapper.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/CMakeLists.txt index 356e869d887..a3792f4a8da 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/CMakeLists.txt @@ -6,7 +6,7 @@ set(TEST_NAME netsocket-ethernet-interface-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 ) @@ -15,23 +15,21 @@ target_sources(${TEST_NAME} ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/EthernetInterface.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/EMACInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libList/ns_list.c test_EthernetInterface.cpp ) target_link_libraries(${TEST_NAME} PRIVATE + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket - mbed-headers mbed-stubs mbed-stubs-headers mbed-stubs-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/CMakeLists.txt index d658c702dc3..a601d8346f8 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/CMakeLists.txt @@ -6,7 +6,7 @@ set(TEST_NAME netsocket-iface-dns-socket-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 DEVICE_EMAC MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=ETHERNET @@ -20,13 +20,10 @@ target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkInterfaceDefaults.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp #nsapi_create_stack ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TCPSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetDatagramSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/UDPSocket.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketStats.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/EthernetInterface.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/EMACInterface.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/nsapi_dns.cpp @@ -35,14 +32,15 @@ target_sources(${TEST_NAME} ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libList/ns_list.c moduletest.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/CMakeLists.txt index 53daa2164cb..cd375fda729 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/CMakeLists.txt @@ -6,18 +6,15 @@ set(TEST_NAME netsocket-internet-socket-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 ) target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_InternetSocket.cpp @@ -25,12 +22,14 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs mbed-stubs-headers mbed-stubs-netsocket + mbed-stubs-nanostack-libservice gmock_main ) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/CMakeLists.txt index 7f03ae21062..d9f4071a321 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/CMakeLists.txt @@ -6,29 +6,21 @@ set(TEST_NAME netsocket-network-interface-unittest) add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} - PRIVATE + PRIVATE MBED_CONF_PLATFORM_CALLBACK_COMPARABLE MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 - + ) target_sources(${TEST_NAME} PRIVATE - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libList/ns_list.c test_NetworkInterface.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/CMakeLists.txt index b6ac2bffef3..f6717a528f5 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/CMakeLists.txt @@ -7,24 +7,24 @@ add_executable(${TEST_NAME}) target_compile_definitions(${TEST_NAME} PRIVATE - MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 + MBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10 ) target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp + ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c + ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_NetworkStack.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/CMakeLists.txt index 2fc21800523..799c28cbf8e 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/CMakeLists.txt @@ -14,21 +14,18 @@ target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/PPPInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/EMACInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkInterface.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libList/ns_list.c test_PPPInterface.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/CMakeLists.txt index 3cad0d68f4a..b4d89cc8be8 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/CMakeLists.txt @@ -12,13 +12,12 @@ target_sources(${TEST_NAME} ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c + ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_SocketAddress.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/CMakeLists.txt index 8e54e741647..b5e8fc9496b 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/CMakeLists.txt @@ -13,12 +13,9 @@ target_compile_definitions(${TEST_NAME} target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TCPSocket.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_TCPSocket.cpp @@ -26,12 +23,14 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs mbed-stubs-headers mbed-stubs-netsocket + mbed-stubs-nanostack-libservice gmock_main ) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/CMakeLists.txt index 996a83f2162..62cf0d33070 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/CMakeLists.txt @@ -12,23 +12,18 @@ target_compile_definitions(${TEST_NAME} target_sources(${TEST_NAME} PRIVATE - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TCPSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TLSSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TLSSocketWrapper.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_TLSSocket.cpp ) target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/CMakeLists.txt index 963806da5dc..e30aac1a19a 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/CMakeLists.txt @@ -13,13 +13,10 @@ target_compile_definitions(${TEST_NAME} target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TCPSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/TLSSocketWrapper.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_TLSSocketWrapper.cpp @@ -27,7 +24,9 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-events + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-mbedtls mbed-headers-netsocket @@ -35,6 +34,7 @@ target_link_libraries(${TEST_NAME} mbed-stubs-headers mbed-stubs-mbedtls mbed-stubs-netsocket + mbed-stubs-nanostack-libservice gmock_main ) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/CMakeLists.txt index f79024d2572..ab043690a4d 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/CMakeLists.txt @@ -13,13 +13,10 @@ target_compile_definitions(${TEST_NAME} target_sources(${TEST_NAME} PRIVATE ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/SocketAddress.cpp - ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/NetworkStack.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/InternetDatagramSocket.cpp ${mbed-os_SOURCE_DIR}/connectivity/netsocket/source/UDPSocket.cpp - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c - ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c ${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c test_UDPSocket.cpp @@ -27,12 +24,14 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers + mbed-headers-drivers + mbed-headers-rtos mbed-headers-nanostack-libservice mbed-headers-netsocket mbed-stubs mbed-stubs-headers mbed-stubs-netsocket + mbed-stubs-nanostack-libservice gmock_main ) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/CMakeLists.txt b/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/CMakeLists.txt index f6a5ef1832a..62c0a3fe03c 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/CMakeLists.txt +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/CMakeLists.txt @@ -13,7 +13,6 @@ target_sources(${TEST_NAME} target_link_libraries(${TEST_NAME} PRIVATE - mbed-headers mbed-headers-netsocket mbed-stubs mbed-stubs-headers