Skip to content

Commit fa0ab53

Browse files
committed
CMake: Move connectivity/cellular stubs to the mbed-os/connectivity/cellular dir
Move the connectivity cellular into the connectivity/cellular component directory. So we can avoid duplicating the mbed-os source tree in a central UNITTESTS folder.
1 parent 8902a0c commit fa0ab53

File tree

26 files changed

+54
-16
lines changed

26 files changed

+54
-16
lines changed

UNITTESTS/stubs/connectivity/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ target_compile_definitions(mbed-stubs-connectivity
77
PRIVATE
88
DEVICE_SERIAL=1
99
DEVICE_INTERRUPTIN=1
10-
MBED_CONF_CELLULAR_USE_SMS=1
11-
MBED_CONF_NSAPI_DEFAULT_CELLULAR_APN=NULL
1210
MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
1311
MBED_CONF_LORA_OVER_THE_AIR_ACTIVATION=true
1412
MBED_CONF_LORA_AUTOMATIC_UPLINK_MESSAGE=true
@@ -21,19 +19,7 @@ target_compile_definitions(mbed-stubs-connectivity
2119
target_sources(mbed-stubs-connectivity
2220
PRIVATE
2321
aes_stub.c
24-
AT_CellularContext_stub.cpp
25-
AT_CellularDevice_stub.cpp
26-
AT_CellularInformation_stub.cpp
27-
AT_CellularNetwork_stub.cpp
28-
AT_CellularSMS_stub.cpp
29-
AT_CellularStack_stub.cpp
30-
AT_ControlPlane_netif_stub.cpp
31-
ATHandler_stub.cpp
32-
CellularContext_stub.cpp
33-
CellularDevice_stub.cpp
3422
CellularInterface_stub.cpp
35-
CellularStateMachine_stub.cpp
36-
CellularUtil_stub.cpp
3723
cipher_stub.c
3824
cmac_stub.c
3925
ip4tos_stub.c
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_subdirectory(doubles)
45
add_subdirectory(framework)

UNITTESTS/stubs/connectivity/AT_CellularContext_stub.cpp renamed to connectivity/cellular/tests/UNITTESTS/doubles/AT_CellularContext_stub.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ bool AT_CellularContext::get_context()
171171
return true;
172172
}
173173

174-
const char* AT_CellularContext::get_nonip_context_type_str() {
174+
const char *AT_CellularContext::get_nonip_context_type_str()
175+
{
175176
return "Non-IP";
176177
}
177178

UNITTESTS/stubs/connectivity/AT_CellularStack_stub.cpp renamed to connectivity/cellular/tests/UNITTESTS/doubles/AT_CellularStack_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AT_CellularStack::~AT_CellularStack()
3131
{
3232
}
3333

34-
nsapi_error_t AT_CellularStack::get_ip_address(SocketAddress* address)
34+
nsapi_error_t AT_CellularStack::get_ip_address(SocketAddress *address)
3535
{
3636
return NSAPI_ERROR_UNSUPPORTED;
3737
}

0 commit comments

Comments
 (0)