summaryrefslogtreecommitdiff
path: root/TAO/tests/DynAny_Test/test_wrapper.h
blob: a2fdecdbd7c220e9bbada9f5d8b4c04da0df48ca (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

//=============================================================================
/**
 *  @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_;
};

#include "test_wrapper.cpp"

#endif /* TEST_WRAPPER_H */