xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
tests
XrdClTests
TestEnv.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// Copyright (c) 2011-2012 by European Organization for Nuclear Research (CERN)
3
// Author: Lukasz Janyst <ljanyst@cern.ch>
4
//------------------------------------------------------------------------------
5
// XRootD is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU Lesser General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// XRootD is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
17
//------------------------------------------------------------------------------
18
19
#ifndef __TEST_ENV_HH__
20
#define __TEST_ENV_HH__
21
22
#include "
XrdSys/XrdSysPthread.hh
"
23
#include "
XrdCl/XrdClEnv.hh
"
24
#include "
XrdCl/XrdClLog.hh
"
25
26
namespace
XrdClTests {
27
28
//------------------------------------------------------------------------------
30
//------------------------------------------------------------------------------
31
class
TestEnv
:
public
XrdCl::Env
32
{
33
public
:
34
//--------------------------------------------------------------------------
36
//--------------------------------------------------------------------------
37
TestEnv
();
38
39
//--------------------------------------------------------------------------
41
//--------------------------------------------------------------------------
42
static
XrdCl::Env
*
GetEnv
();
43
44
//--------------------------------------------------------------------------
46
//--------------------------------------------------------------------------
47
static
XrdCl::Log
*
GetLog
();
48
49
//--------------------------------------------------------------------------
51
//--------------------------------------------------------------------------
52
static
void
Release
();
53
54
private
:
55
static
XrdSysMutex
sEnvMutex
;
56
static
XrdCl::Env
*
sEnv
;
57
static
XrdCl::Log
*
sLog
;
58
};
59
60
}
61
62
#endif // __TEST_ENV_HH__
Generated by
1.8.3.1