Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.h@19:26fbed33d4e7, 2012-09-03 (annotated)
- Committer:
- ashleymills
- Date:
- Mon Sep 03 16:02:58 2012 +0000
- Revision:
- 19:26fbed33d4e7
- Parent:
- 4:1f8e079924ba
- Child:
- 22:5b1feecf2aeb
Added another USSD test. Changed the framework so a list of tests is passed to the execution function.
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 | 19:26fbed33d4e7 | 16 | int executeTestList(const int *list, const int listLen); |
ashleymills | 4:1f8e079924ba | 17 | bool runTest(int id); |
ashleymills | 4:1f8e079924ba | 18 | bool runTest(int id, int numTimes); |
ashleymills | 2:ea883307d02f | 19 | |
ashleymills | 2:ea883307d02f | 20 | private: |
ashleymills | 2:ea883307d02f | 21 | VodafoneUSBModem *_modem; |
ashleymills | 2:ea883307d02f | 22 | vector<VodafoneTestCase*> _tests; |
ashleymills | 2:ea883307d02f | 23 | }; |