blob: c95c1854038a8fa9a725e057aa61ef4964f3abf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//=============================================================================
/**
* @file test_wrapper.cpp
*
* 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/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 ()
{
delete this->test_object_;
}
template <class T>
int
Test_Wrapper<T>::run_test ()
{
const char* test_name = this->test_object_->test_name ();
ACE_DEBUG ((LM_DEBUG,
"********************* %C *******************\n\n",
test_name));
return this->test_object_->run_test ();
}
#endif /* TEST_WRAPPER_CPP */
|