repeatedtest.cpp

来自「这是国外的resip协议栈」· C++ 代码 · 共 30 行

CPP
30
字号
#include <cppunit/extensions/RepeatedTest.h>#include <cppunit/TestResult.h>CPPUNIT_NS_BEGIN// Counts the number of test cases that will be run by this test.intRepeatedTest::countTestCases() const{   return TestDecorator::countTestCases() * m_timesRepeat; }// Runs a repeated testvoid RepeatedTest::run( TestResult *result ){  for ( int n = 0; n < m_timesRepeat; n++ )   {    if ( result->shouldStop() )        break;    TestDecorator::run( result );  }}CPPUNIT_NS_END

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?