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


#include "orbsvcs/CosConcurrencyControlC.h"

#ifndef _CC_TEST_UTILS_H_
#define _CC_TEST_UTILS_H_

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

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

#endif /* _CC_TEST_UTILS_H_ */