Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Committer:
ashleymills
Date:
Wed Jan 29 16:34:38 2014 +0000
Revision:
74:e52ac9624f7f
Parent:
69:4fc3b0ad12c7
Updated dependencies to latest versions.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ashleymills 2:ea883307d02f 1 #pragma once
ashleymills 2:ea883307d02f 2 #include "VodafoneUSBModem.h"
ashleymills 2:ea883307d02f 3 #include "LogHeader.h"
nherriot 28:c630a04a7198 4
ashleymills 2:ea883307d02f 5 class VodafoneTestCase {
ashleymills 2:ea883307d02f 6 public:
ashleymills 33:16126e029d58 7 VodafoneTestCase(VodafoneUSBModem *m) : _modem(m) , _lastRunTime(0), _lastRunOutcome(false) {
ashleymills 2:ea883307d02f 8 }
ashleymills 2:ea883307d02f 9
ashleymills 4:1f8e079924ba 10 bool run() {
ashleymills 4:1f8e079924ba 11 setupTest();
ashleymills 44:6d0ac4747f5b 12 _lastRunOutcome = executeTest();
ashleymills 8:6c30647f75d7 13 endTest();
ashleymills 8:6c30647f75d7 14 return _lastRunOutcome;
ashleymills 4:1f8e079924ba 15 }
ashleymills 4:1f8e079924ba 16
ashleymills 69:4fc3b0ad12c7 17 virtual ~VodafoneTestCase() {}
ashleymills 69:4fc3b0ad12c7 18
ashleymills 44:6d0ac4747f5b 19 private:
ashleymills 44:6d0ac4747f5b 20
ashleymills 4:1f8e079924ba 21 virtual void setupTest() {
ashleymills 4:1f8e079924ba 22 }
ashleymills 4:1f8e079924ba 23
ashleymills 44:6d0ac4747f5b 24 virtual bool executeTest() {
ashleymills 4:1f8e079924ba 25 LOG("Base class runTest called!");
ashleymills 4:1f8e079924ba 26 return true;
ashleymills 4:1f8e079924ba 27 }
ashleymills 4:1f8e079924ba 28
ashleymills 8:6c30647f75d7 29 virtual void endTest() {
ashleymills 8:6c30647f75d7 30
ashleymills 4:1f8e079924ba 31 }
ashleymills 2:ea883307d02f 32
ashleymills 2:ea883307d02f 33 protected:
ashleymills 2:ea883307d02f 34 VodafoneUSBModem *_modem;
ashleymills 32:8ff0b67bb58c 35
ashleymills 27:0297dbc3252b 36 public:
ashleymills 3:28336c2e94e4 37 time_t _lastRunTime;
ashleymills 3:28336c2e94e4 38 bool _lastRunOutcome;
ashleymills 1:0d63e4db8503 39 };