summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Concurrency/CC_test_utils.h
blob: 95a4605d58232241ba98c020cf788e8ca5539078 (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
/* -*- C++ -*- */
// $Id$
// ============================================================================
//
// = LIBRARY
//    TAO/orbsvcs/tests
//
// = FILENAME
//    CC_test_utils.h
//
// = DESCRIPTION
//      This class provides a namespace for utility functions for the
//      concurrency service test.
//
// = AUTHORS
//      Torben Worm <tworm@cs.wustl.edu>
//
// ============================================================================

#include "orbsvcs/orbsvcs/CosConcurrencyControlC.h"

#ifndef _CC_TEST_UTILS_H_
#define _CC_TEST_UTILS_H_

class CC_TestUtils
{
 public:
  static char *get_lock_mode_name (CosConcurrencyControl::lock_mode mode);
  // Function to return a human readable string from a lock_mode enum.

  static CosConcurrencyControl::LockSet_ptr create_lock_set (void);
  // Creates a lock set by means of th lock set factory in the concurrency
  // service server.
 private:
};

#endif /* _CC_TEST_UTILS_H_ */