Skip to content

Commit 022b5a2

Browse files
authored
Merge pull request #14834 from ARMmbed/move_connectivity_cellular_stubs
Move connectivity cellular stubs
2 parents 66a770e + d8add9e commit 022b5a2

File tree

33 files changed

+89
-21
lines changed

33 files changed

+89
-21
lines changed

UNITTESTS/stubs/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ target_include_directories(mbed-headers-connectivity
6767
${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice
6868
${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/mbed-client-libservice
6969
${mbed-os_SOURCE_DIR}/connectivity/netsocket/include
70-
${mbed-os_SOURCE_DIR}/connectivity/cellular/include/cellular/framework/API
71-
${mbed-os_SOURCE_DIR}/connectivity/cellular/include/cellular/framework/AT
72-
${mbed-os_SOURCE_DIR}/connectivity/cellular/include/cellular/framework/device
73-
${mbed-os_SOURCE_DIR}/connectivity/cellular/include/cellular/framework
74-
${mbed-os_SOURCE_DIR}/connectivity/cellular/include/cellular/framework/common
7570
${mbed-os_SOURCE_DIR}/connectivity
7671
${mbed-os_SOURCE_DIR}/connectivity/lorawan/include/lorawan
7772
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack

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)