Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

Committer:
ashleymills
Date:
Wed Sep 05 14:47:44 2012 +0000
Revision:
22:5b1feecf2aeb
Parent:
19:26fbed33d4e7
Child:
27:0297dbc3252b
Modified test suite for proper profiling. Added two more tests for signal strength.

Who changed what in which revision?

UserRevisionLine numberNew 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 19:26fbed33d4e7 17 int executeTestList(const int *list, const int listLen);
ashleymills 22:5b1feecf2aeb 18 int executeTestProfile(TestProfile profile);
ashleymills 22:5b1feecf2aeb 19 int getTestProfileLength(TestProfile profile);
ashleymills 4:1f8e079924ba 20 bool runTest(int id);
ashleymills 4:1f8e079924ba 21 bool runTest(int id, int numTimes);
ashleymills 2:ea883307d02f 22
ashleymills 2:ea883307d02f 23 private:
ashleymills 2:ea883307d02f 24 VodafoneUSBModem *_modem;
ashleymills 2:ea883307d02f 25 vector<VodafoneTestCase*> _tests;
ashleymills 2:ea883307d02f 26 };