mirror of https://github.com/ARMmbed/mbed-os.git
Fix CellularDevice::shutdown UT
As shutdown was overridden in test class, original shutdown() method was not called at all.pull/11495/head
parent
b6ecce0bfb
commit
ce3d41433e
|
@ -35,7 +35,7 @@ class FileHandle;
|
||||||
class myCellularDevice : public CellularDevice {
|
class myCellularDevice : public CellularDevice {
|
||||||
public:
|
public:
|
||||||
myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {}
|
myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {}
|
||||||
~myCellularDevice()
|
virtual ~myCellularDevice()
|
||||||
{
|
{
|
||||||
delete _context_list;
|
delete _context_list;
|
||||||
delete _network;
|
delete _network;
|
||||||
|
@ -125,11 +125,6 @@ public:
|
||||||
return NSAPI_ERROR_OK;
|
return NSAPI_ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual nsapi_error_t shutdown()
|
|
||||||
{
|
|
||||||
return NSAPI_ERROR_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual nsapi_error_t is_ready()
|
virtual nsapi_error_t is_ready()
|
||||||
{
|
{
|
||||||
return NSAPI_ERROR_OK;
|
return NSAPI_ERROR_OK;
|
||||||
|
|
Loading…
Reference in New Issue