Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Committer:
ashleymills
Date:
Thu Aug 23 15:41:20 2012 +0000
Revision:
4:1f8e079924ba
Parent:
3:28336c2e94e4
Child:
19:26fbed33d4e7
Added setup and teardown code

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 "VodafoneTestCase.h"
ashleymills 2:ea883307d02f 4 #include <vector>
ashleymills 3:28336c2e94e4 5
ashleymills 3:28336c2e94e4 6 enum TestNames {
ashleymills 3:28336c2e94e4 7 TEST0_SMSSHORT=0,
ashleymills 3:28336c2e94e4 8 TEST1_SMSLONG
ashleymills 3:28336c2e94e4 9 };
ashleymills 3:28336c2e94e4 10
ashleymills 2:ea883307d02f 11 class TestManager {
ashleymills 2:ea883307d02f 12
ashleymills 2:ea883307d02f 13 public:
ashleymills 2:ea883307d02f 14 TestManager(VodafoneUSBModem *m);
ashleymills 2:ea883307d02f 15 void addTest(VodafoneTestCase *tc);
ashleymills 2:ea883307d02f 16 int runAll();
ashleymills 2:ea883307d02f 17 int getNumTests();
ashleymills 4:1f8e079924ba 18 bool runTest(int id);
ashleymills 4:1f8e079924ba 19 bool runTest(int id, int numTimes);
ashleymills 2:ea883307d02f 20
ashleymills 2:ea883307d02f 21 private:
ashleymills 2:ea883307d02f 22 VodafoneUSBModem *_modem;
ashleymills 2:ea883307d02f 23 vector<VodafoneTestCase*> _tests;
ashleymills 2:ea883307d02f 24 };