test_wrapper.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 60 行
CPP
60 行
//=============================================================================
/**
* @file test_wrapper.cpp
*
* test_wrapper.cpp,v 1.6 2003/08/24 12:58:02 jwillemsen Exp
*
* This file contains the implementation of the DynAny basic test manager
*
*
* @author Jeff Parsons <parsons@cs.wustl.edu>
*/
//=============================================================================
#if !defined (TEST_WRAPPER_CPP)
#define TEST_WRAPPER_CPP
#include "test_wrapper.h"
#include "ace/OS.h"
#include "ace/Log_Msg.h"
// Constructor
template <class T>
Test_Wrapper<T>::Test_Wrapper (T* t)
: test_object_ (t)
{
}
// Destructor
template <class T>
Test_Wrapper<T>::~Test_Wrapper (void)
{
delete this->test_object_;
}
template <class T>
int
Test_Wrapper<T>::run_test (void)
{
const char* test_name = this->test_object_->test_name ();
ACE_DEBUG ((LM_DEBUG,
"********************* %s *******************\n\n",
test_name));
if (this->test_object_->run_test () == -1)
{
ACE_ERROR ((LM_ERROR,
"(%N:%l) test_wrapper.cpp - run_test:"
"run_test exception in %s",
test_name));
return -1;
}
return 0;
}
#endif /* TEST_WRAPPER_CPP */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?