Vodafone Test Suite

Dependencies:   mbed-rtos mbed HTTPClient VodafoneUSBModem

TestManager.h

Committer:
nherriot
Date:
2012-10-15
Revision:
56:6ca2d4c1ffc4
Parent:
44:6d0ac4747f5b

File content as of revision 56:6ca2d4c1ffc4:

#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;
      
};