ATLAS Offline Software
InitGaudiGoogleTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 // -*- mode: c++ -*-
5 
16 #ifndef GOOGLETESTTOOLS_INITGAUDIGOOGLETEST_H
17 #define GOOGLETESTTOOLS_INITGAUDIGOOGLETEST_H
18 
19 #include "GaudiKernel/IMessageSvc.h"
20 #include "GaudiKernel/SmartIF.h"
21 #include "GaudiKernel/IProperty.h"
22 #include "GaudiKernel/ISvcLocator.h"
23 #include "GaudiKernel/ISvcManager.h"
24 #include "GaudiKernel/IToolSvc.h"
25 
26 #include "gtest/gtest.h"
27 
28 class IAppMgrUI;
29 
30 namespace Athena_test {
31 
32  class InitGaudiGoogleTest : public ::testing::Test {
33  public:
34 
40 
45  InitGaudiGoogleTest( const std::string& jobOptsPath );
46 
48  virtual ~InitGaudiGoogleTest();
49 
52  IAppMgrUI* theApp;
53  SmartIF<IProperty> propMgr;
54  SmartIF<ISvcLocator> svcLoc;
55  SmartIF<ISvcManager> svcMgr;
56  SmartIF<IToolSvc> toolSvc;
59  private:
60  InitGaudiGoogleTest( const std::string& jobOptsPath, MSG::Level level );
61 
62  };
63 
64 }
65 
66 #endif
Athena_test::InitGaudiGoogleTest::~InitGaudiGoogleTest
virtual ~InitGaudiGoogleTest()
dtor
Definition: InitGaudiGoogleTest.cxx:46
Athena_test::InitGaudiGoogleTest::theApp
IAppMgrUI * theApp
public members are visible in tests
Definition: InitGaudiGoogleTest.h:52
Athena_test::InitGaudiGoogleTest::svcMgr
SmartIF< ISvcManager > svcMgr
Definition: InitGaudiGoogleTest.h:55
Athena_test::InitGaudiGoogleTest::InitGaudiGoogleTest
InitGaudiGoogleTest(MSG::Level level=MSG::INFO)
Create GoogleTest fixture.
Definition: InitGaudiGoogleTest.cxx:54
Athena_test::InitGaudiGoogleTest::propMgr
SmartIF< IProperty > propMgr
Definition: InitGaudiGoogleTest.h:53
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
Athena_test
functions & macros to test the difference between floats
Definition: InitGaudiGoogleTest.h:30
Athena_test::InitGaudiGoogleTest::toolSvc
SmartIF< IToolSvc > toolSvc
Definition: InitGaudiGoogleTest.h:56
Athena_test::InitGaudiGoogleTest
Definition: InitGaudiGoogleTest.h:32
Athena_test::InitGaudiGoogleTest::svcLoc
SmartIF< ISvcLocator > svcLoc
Definition: InitGaudiGoogleTest.h:54