blob: 11abca739b063a56ba3cf6317f4592c1024fda05 (
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
46
47
|
//=============================================================================
/**
* @file test_wrapper.h
*
* Header file for the DynAny basic test manager
*
* @author Jeff Parsons <parsons@cs.wustl.edu>
*/
//=============================================================================
#if !defined (TEST_WRAPPER_H)
#define TEST_WRAPPER_H
template <class T>
class Test_Wrapper
{
public:
typedef T TEST_OBJECT;
// constructor and destructor
Test_Wrapper (T *);
~Test_Wrapper ();
/**
* @brief Run the test.
*
* @return The number of errors detected.
*/
int run_test ();
private:
// This does all the work.
TEST_OBJECT* test_object_;
};
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "test_wrapper.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("test_wrapper.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#endif /* TEST_WRAPPER_H */
|