Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.h@41:9d802bf152fa, 2012-09-14 (annotated)
- Committer:
- donatien
- Date:
- Fri Sep 14 12:58:57 2012 +0000
- Revision:
- 41:9d802bf152fa
- Parent:
- 40:32b0558320ea
- Child:
- 44:6d0ac4747f5b
Reduced stack size
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 | 40:32b0558320ea | 7 | #define NUMBER_OF_TESTS 100 |
ashleymills | 3:28336c2e94e4 | 8 | |
ashleymills | 2:ea883307d02f | 9 | class TestManager { |
ashleymills | 2:ea883307d02f | 10 | |
ashleymills | 2:ea883307d02f | 11 | public: |
ashleymills | 2:ea883307d02f | 12 | TestManager(VodafoneUSBModem *m); |
ashleymills | 2:ea883307d02f | 13 | void addTest(VodafoneTestCase *tc); |
ashleymills | 33:16126e029d58 | 14 | |
ashleymills | 33:16126e029d58 | 15 | bool executeTest(int id); |
ashleymills | 33:16126e029d58 | 16 | bool executeTest(int id, int numTimes); |
ashleymills | 40:32b0558320ea | 17 | int executeTestProfile(TestProfile profile); |
ashleymills | 40:32b0558320ea | 18 | int getTestProfileLength(TestProfile profile); |
ashleymills | 33:16126e029d58 | 19 | |
ashleymills | 2:ea883307d02f | 20 | |
ashleymills | 2:ea883307d02f | 21 | private: |
ashleymills | 2:ea883307d02f | 22 | VodafoneUSBModem *_modem; |
ashleymills | 2:ea883307d02f | 23 | vector<VodafoneTestCase*> _tests; |
ashleymills | 40:32b0558320ea | 24 | VodafoneTestCase* constructTest(int id); |
ashleymills | 40:32b0558320ea | 25 | int executeTestList(const int *list, const int listLen); |
ashleymills | 40:32b0558320ea | 26 | void listFailures(const int *list, const int listLen); |
ashleymills | 40:32b0558320ea | 27 | void resetTestOutcomes(); |
ashleymills | 40:32b0558320ea | 28 | bool *_testOutcomes; |
ashleymills | 33:16126e029d58 | 29 | |
ashleymills | 2:ea883307d02f | 30 | }; |