Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.h@3:28336c2e94e4, 2012-08-23 (annotated)
- Committer:
- ashleymills
- Date:
- Thu Aug 23 13:32:32 2012 +0000
- Revision:
- 3:28336c2e94e4
- Parent:
- 2:ea883307d02f
- Child:
- 4:1f8e079924ba
Added multiple tests
Who changed what in which revision?
User | Revision | Line number | New 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 | 2:ea883307d02f | 18 | |
ashleymills | 2:ea883307d02f | 19 | private: |
ashleymills | 2:ea883307d02f | 20 | VodafoneUSBModem *_modem; |
ashleymills | 2:ea883307d02f | 21 | vector<VodafoneTestCase*> _tests; |
ashleymills | 2:ea883307d02f | 22 | }; |