Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.h@37:847f5f86e9ff, 2012-09-13 (annotated)
- Committer:
- ashleymills
- Date:
- Thu Sep 13 15:26:49 2012 +0000
- Revision:
- 37:847f5f86e9ff
- Parent:
- 33:16126e029d58
- Child:
- 40:32b0558320ea
Test only constructed when executed. INCOMPLETE, need to change som e other stuff to reflect this.
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 | 22:5b1feecf2aeb | 4 | #include "Tests.h" |
ashleymills | 2:ea883307d02f | 5 | #include <vector> |
ashleymills | 3:28336c2e94e4 | 6 | |
ashleymills | 3:28336c2e94e4 | 7 | enum TestNames { |
ashleymills | 3:28336c2e94e4 | 8 | TEST0_SMSSHORT=0, |
ashleymills | 3:28336c2e94e4 | 9 | TEST1_SMSLONG |
ashleymills | 3:28336c2e94e4 | 10 | }; |
ashleymills | 3:28336c2e94e4 | 11 | |
ashleymills | 2:ea883307d02f | 12 | class TestManager { |
ashleymills | 2:ea883307d02f | 13 | |
ashleymills | 2:ea883307d02f | 14 | public: |
ashleymills | 2:ea883307d02f | 15 | TestManager(VodafoneUSBModem *m); |
ashleymills | 2:ea883307d02f | 16 | void addTest(VodafoneTestCase *tc); |
ashleymills | 33:16126e029d58 | 17 | |
ashleymills | 27:0297dbc3252b | 18 | void listFailures(const int *list, const int listLen); |
ashleymills | 33:16126e029d58 | 19 | |
ashleymills | 33:16126e029d58 | 20 | bool executeTest(int id); |
ashleymills | 33:16126e029d58 | 21 | bool executeTest(int id, int numTimes); |
ashleymills | 33:16126e029d58 | 22 | int executeTestProfile(TestProfile profile); |
ashleymills | 33:16126e029d58 | 23 | int executeTestList(const int *list, const int listLen); |
ashleymills | 33:16126e029d58 | 24 | |
ashleymills | 37:847f5f86e9ff | 25 | VodafoneTestCase* constructTest(int id); |
ashleymills | 37:847f5f86e9ff | 26 | |
ashleymills | 33:16126e029d58 | 27 | VodafoneTestCase* getTest(int index); |
ashleymills | 22:5b1feecf2aeb | 28 | int getTestProfileLength(TestProfile profile); |
ashleymills | 2:ea883307d02f | 29 | |
ashleymills | 2:ea883307d02f | 30 | private: |
ashleymills | 2:ea883307d02f | 31 | VodafoneUSBModem *_modem; |
ashleymills | 2:ea883307d02f | 32 | vector<VodafoneTestCase*> _tests; |
ashleymills | 33:16126e029d58 | 33 | |
ashleymills | 2:ea883307d02f | 34 | }; |