Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

TestManager.h

Committer:
ashleymills
Date:
2012-09-17
Revision:
44:6d0ac4747f5b
Parent:
40:32b0558320ea

File content as of revision 44:6d0ac4747f5b:

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

#define NUMBER_OF_TESTS 100

class TestManager {

   public:
      TestManager(VodafoneUSBModem *m);
      void addTest(VodafoneTestCase *tc);
      
      bool runTest(int id);
      bool runTest(int id, int numTimes);
      int  runTestProfile(TestProfile profile);
      int  getTestProfileLength(TestProfile profile);
      
      
   private:
      VodafoneUSBModem *_modem;
      vector<VodafoneTestCase*> _tests;
      VodafoneTestCase* constructTest(int id);
      int  runTestList(const int *list, const int listLen);
      void listFailures(const int *list, const int listLen);
      void resetTestOutcomes();
      bool *_testOutcomes;
      
};