Skip to content

Commit 0ff91c1

Browse files
committed
Add unit test stub for get_connection_status()
1 parent 13222da commit 0ff91c1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

UNITTESTS/stubs/AT_CellularContext_stub.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ uint32_t AT_CellularContext::get_timeout_for_operation(ContextOperation op) cons
8282
return timeout;
8383
}
8484

85+
86+
8587
bool AT_CellularContext::is_connected()
8688
{
8789
return true;
@@ -197,6 +199,12 @@ nsapi_error_t AT_CellularContext::disconnect()
197199
return NSAPI_ERROR_OK;
198200
}
199201

202+
203+
nsapi_connection_status_t AT_CellularContext::get_connection_status() const
204+
{
205+
return NSAPI_STATUS_DISCONNECTED;
206+
}
207+
200208
nsapi_error_t AT_CellularContext::get_apn_backoff_timer(int &backoff_timer)
201209
{
202210
return NSAPI_ERROR_OK;

0 commit comments

Comments
 (0)