⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdecoratortest.cpp

📁 这是国外的resip协议栈
💻 CPP
字号:
#include "ExtensionSuite.h"#include "TestDecoratorTest.h"#include <cppunit/TestResult.h>CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( TestDecoratorTest,                                       extensionSuiteName() );TestDecoratorTest::TestDecoratorTest(){}TestDecoratorTest::~TestDecoratorTest(){}void TestDecoratorTest::setUp(){  m_test = new MockTestCase( "mocktest" );  m_decorator = new CPPUNIT_NS::TestDecorator( m_test );}void TestDecoratorTest::tearDown(){  delete m_decorator;}void TestDecoratorTest::testCountTestCases(){  m_test->setExpectedCountTestCasesCall( 1 );  CPPUNIT_ASSERT_EQUAL( 1, m_decorator->countTestCases() );  m_test->verify();}void TestDecoratorTest::testRun(){  m_test->setExpectedSetUpCall( 1 );  m_test->setExpectedRunTestCall( 1 );  m_test->setExpectedTearDownCall( 1 );  CPPUNIT_NS::TestResult result;  m_decorator->run( &result );  m_test->verify();}void TestDecoratorTest::testGetName(){  CPPUNIT_ASSERT_EQUAL( m_test->getName(), m_decorator->getName() );}

⌨️ 快捷键说明

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