Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
TestManager.cpp
- Committer:
- ashleymills
- Date:
- 2012-08-23
- Revision:
- 3:28336c2e94e4
- Parent:
- 2:ea883307d02f
- Child:
- 4:1f8e079924ba
File content as of revision 3:28336c2e94e4:
#include "TestManager.h" #include "Tests.h" TestManager::TestManager(VodafoneUSBModem *m) : _modem(m) { _tests.push_back((VodafoneTestCase*)new Test20(_modem)); _tests.push_back((VodafoneTestCase*)new Test50(_modem)); } int TestManager::runAll() { int successfullTests = 0; LOG("Running %d tests...",_tests.size()); for(int i=0; i<_tests.size(); i++) { LOG("Running test %d...",i); if(_tests[i]->runTest()) { LOG("...OK"); successfullTests++; } else { LOG("...FAIL"); } } return successfullTests; } int TestManager::getNumTests() { return _tests.size(); }