![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include <gtest/gtest.h>
32 declareServiceInterface<IUnitTestService1>();
65 return StatusCode::FAILURE;
70 return StatusCode::FAILURE;
73 return StatusCode::SUCCESS;
113 static std::map<std::string,int> counts;
114 auto iter = counts.find (
name);
115 if (iter == counts.end())
116 iter = counts.insert (std::make_pair (
name, 0)).first;
117 assert (iter != counts.end());
virtual std::string getPropertyString() const override
get the integer property
virtual int getPropertyInt() const override
get the integer property
UnitTestService1(const std::string &name, ISvcLocator *pSvcLocator)
standard constructor
static int & instance_counts(const std::string &name)
the number of times the service of the given name has been instantiated
bool m_initializeFail
whether initialize should fail
Base class for the dual-use service implementation classes.
::StatusCode StatusCode
StatusCode definition for legacy code.
~UnitTestService1()
standard destructor
bool m_isInitialized
whether initialize has been called
int m_propertyInt
the integer property
ATLAS_NO_CHECK_FILE_THREAD_SAFETY
virtual bool isInitialized() const override
get whether we have been initialized
std::string m_propertyString
the string property
StatusCode initialize() override
set up/tear down functions
virtual void setPropertyInt(int val_property) override
get the integer property
Define macros for attributes used to control the static checker.