Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

TestManager.h

Committer:
ashleymills
Date:
2012-09-13
Revision:
37:847f5f86e9ff
Parent:
33:16126e029d58
Child:
40:32b0558320ea

File content as of revision 37:847f5f86e9ff:

#pragma once
#include "VodafoneUSBModem.h"
#include "VodafoneTestCase.h"
#include "Tests.h"
#include <vector>

enum TestNames {
   TEST0_SMSSHORT=0,
   TEST1_SMSLONG
};

class TestManager {

   public:
      TestManager(VodafoneUSBModem *m);
      void addTest(VodafoneTestCase *tc);
      
      void listFailures(const int *list, const int listLen);
      
      bool executeTest(int id);
      bool executeTest(int id, int numTimes);
      int  executeTestProfile(TestProfile profile);
      int  executeTestList(const int *list, const int listLen);
      
      VodafoneTestCase* constructTest(int id);
      
      VodafoneTestCase* getTest(int index);
      int getTestProfileLength(TestProfile profile);
      
   private:
      VodafoneUSBModem *_modem;
      vector<VodafoneTestCase*> _tests;
      
};