Skip to content

Commit 3f289c2

Browse files
committed
unittest: fix stubs coding style
1 parent 91e1da1 commit 3f289c2

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

UNITTESTS/features/netsocket/InternetSocket/test_InternetSocket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class stubInternetSocket : public InternetSocket {
2626
protected:
2727
nsapi_error_t return_value;
2828
public:
29-
stubInternetSocket() {
29+
stubInternetSocket()
30+
{
3031
return_value = 0;
3132
}
3233
virtual nsapi_error_t connect(const SocketAddress &address)

UNITTESTS/stubs/AT_CellularContext_stub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
using namespace mbed;
2121

2222
AT_CellularContext::AT_CellularContext(ATHandler &at, CellularDevice *device, const char *apn) :
23-
AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
24-
_current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
23+
AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
24+
_current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
2525
{
2626
_stack = NULL;
2727
_ip_stack_type = DEFAULT_STACK;
@@ -115,7 +115,7 @@ void AT_CellularContext::set_sim_pin(const char *sim_pin)
115115
}
116116

117117
nsapi_error_t AT_CellularContext::connect(const char *sim_pin, const char *apn, const char *uname,
118-
const char *pwd)
118+
const char *pwd)
119119
{
120120
return NSAPI_ERROR_OK;
121121
}
@@ -173,7 +173,7 @@ bool AT_CellularContext::set_new_context(int cid)
173173

174174
nsapi_error_t AT_CellularContext::do_activate_context()
175175
{
176-
return NSAPI_ERROR_OK;
176+
return NSAPI_ERROR_OK;
177177
}
178178

179179
void AT_CellularContext::do_connect()

UNITTESTS/stubs/CellularDevice_stub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ MBED_WEAK CellularDevice *CellularDevice::get_default_instance()
2626
return NULL;
2727
}
2828

29-
CellularDevice::CellularDevice(FileHandle *fh) : _network_ref_count(0), _sms_ref_count(0),_power_ref_count(0), _sim_ref_count(0),
30-
_info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
29+
CellularDevice::CellularDevice(FileHandle *fh) : _network_ref_count(0), _sms_ref_count(0), _power_ref_count(0), _sim_ref_count(0),
30+
_info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
3131
{
3232
}
3333

@@ -41,11 +41,11 @@ events::EventQueue *CellularDevice::get_queue()
4141
return NULL;
4242
}
4343

44-
void CellularDevice::set_plmn(char const*)
44+
void CellularDevice::set_plmn(char const *)
4545
{
4646
}
4747

48-
void CellularDevice::set_sim_pin(char const*)
48+
void CellularDevice::set_sim_pin(char const *)
4949
{
5050
}
5151

UNITTESTS/stubs/CellularStateMachine_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace mbed {
2424

2525
CellularStateMachine::CellularStateMachine(CellularDevice &device, events::EventQueue &queue) :
26-
_cellularDevice(device), _queue(queue)
26+
_cellularDevice(device), _queue(queue)
2727
{
2828

2929
}

UNITTESTS/stubs/NetworkStack_stub.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class NetworkStackstub : public NetworkStack {
2626
std::list<nsapi_error_t> return_values;
2727
nsapi_error_t return_value;
2828

29-
NetworkStackstub() {
29+
NetworkStackstub()
30+
{
3031
return_value = 0;
3132
}
3233

0 commit comments

Comments
 (0)