Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.h@56:6ca2d4c1ffc4, 2012-10-15 (annotated)
- Committer:
- nherriot
- Date:
- Mon Oct 15 15:55:22 2012 +0000
- Revision:
- 56:6ca2d4c1ffc4
- Parent:
- 44:6d0ac4747f5b
nothing special
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 | 44:6d0ac4747f5b | 15 | bool runTest(int id); |
ashleymills | 44:6d0ac4747f5b | 16 | bool runTest(int id, int numTimes); |
ashleymills | 44:6d0ac4747f5b | 17 | int runTestProfile(TestProfile profile); |
ashleymills | 44:6d0ac4747f5b | 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 | 44:6d0ac4747f5b | 25 | int runTestList(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 | }; |