mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			unittest: fix stubs coding style
							parent
							
								
									91e1da1f8c
								
							
						
					
					
						commit
						3f289c217f
					
				| 
						 | 
				
			
			@ -26,7 +26,8 @@ class stubInternetSocket : public InternetSocket {
 | 
			
		|||
protected:
 | 
			
		||||
    nsapi_error_t return_value;
 | 
			
		||||
public:
 | 
			
		||||
    stubInternetSocket() {
 | 
			
		||||
    stubInternetSocket()
 | 
			
		||||
    {
 | 
			
		||||
        return_value = 0;
 | 
			
		||||
    }
 | 
			
		||||
    virtual nsapi_error_t connect(const SocketAddress &address)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,8 +20,8 @@
 | 
			
		|||
using namespace mbed;
 | 
			
		||||
 | 
			
		||||
AT_CellularContext::AT_CellularContext(ATHandler &at, CellularDevice *device, const char *apn) :
 | 
			
		||||
        AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
 | 
			
		||||
        _current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
 | 
			
		||||
    AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
 | 
			
		||||
    _current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
 | 
			
		||||
{
 | 
			
		||||
    _stack = NULL;
 | 
			
		||||
    _ip_stack_type = DEFAULT_STACK;
 | 
			
		||||
| 
						 | 
				
			
			@ -115,7 +115,7 @@ void AT_CellularContext::set_sim_pin(const char *sim_pin)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
nsapi_error_t AT_CellularContext::connect(const char *sim_pin, const char *apn, const char *uname,
 | 
			
		||||
                              const char *pwd)
 | 
			
		||||
                                          const char *pwd)
 | 
			
		||||
{
 | 
			
		||||
    return NSAPI_ERROR_OK;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -173,7 +173,7 @@ bool AT_CellularContext::set_new_context(int cid)
 | 
			
		|||
 | 
			
		||||
nsapi_error_t AT_CellularContext::do_activate_context()
 | 
			
		||||
{
 | 
			
		||||
   return NSAPI_ERROR_OK;
 | 
			
		||||
    return NSAPI_ERROR_OK;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void AT_CellularContext::do_connect()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,8 +26,8 @@ MBED_WEAK CellularDevice *CellularDevice::get_default_instance()
 | 
			
		|||
    return NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
CellularDevice::CellularDevice(FileHandle *fh) :  _network_ref_count(0), _sms_ref_count(0),_power_ref_count(0), _sim_ref_count(0),
 | 
			
		||||
        _info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
 | 
			
		||||
CellularDevice::CellularDevice(FileHandle *fh) :  _network_ref_count(0), _sms_ref_count(0), _power_ref_count(0), _sim_ref_count(0),
 | 
			
		||||
    _info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -41,11 +41,11 @@ events::EventQueue *CellularDevice::get_queue()
 | 
			
		|||
    return NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CellularDevice::set_plmn(char const*)
 | 
			
		||||
void CellularDevice::set_plmn(char const *)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CellularDevice::set_sim_pin(char const*)
 | 
			
		||||
void CellularDevice::set_sim_pin(char const *)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@
 | 
			
		|||
namespace mbed {
 | 
			
		||||
 | 
			
		||||
CellularStateMachine::CellularStateMachine(CellularDevice &device, events::EventQueue &queue) :
 | 
			
		||||
        _cellularDevice(device), _queue(queue)
 | 
			
		||||
    _cellularDevice(device), _queue(queue)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,8 @@ public:
 | 
			
		|||
    std::list<nsapi_error_t> return_values;
 | 
			
		||||
    nsapi_error_t return_value;
 | 
			
		||||
 | 
			
		||||
    NetworkStackstub() {
 | 
			
		||||
    NetworkStackstub()
 | 
			
		||||
    {
 | 
			
		||||
        return_value = 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue