SDFM_CONTROL/EFC_PlatformC28x_Test/UnitTestInterface.hh

33 lines
502 B
C++
Raw Normal View History

/*
* UnitTestInterface.hh
*
* Created on: 25 сент. 2078 г.
* Author: leonid
*/
#ifndef UNITTESTINTERFACE_HH_
#define UNITTESTINTERFACE_HH_
#include <string>
namespace umlib { namespace tests {
struct TestResult {
virtual void assert_false( bool, std::string description ) = 0;
virtual void assert_true( bool, std::string description ) = 0;
};
struct UnitTestInterface {
virtual void run( TestResult & test_result ) = 0;
};
}}
#endif /* UNITTESTINTERFACE_HH_ */