Environment setup helper for DetectorClocksStandard. More...
#include <DetectorClocksStandardTestHelpers.h>
Static Public Member Functions | |
static detinfo::DetectorClocksStandard * | setup (TestEnv &env) |
Environment setup helper for DetectorClocksStandard.
TestEnv | type of environment to set up |
A service provider is set up in the environment, associated with the types detinfo::DetectorClocksStandard and detinfo::DetectorClocks. Its configuration is read from "services.DetectorClocksService".
The environment is expected to expose an interface equivalent to the one of testing::TesterEnvironment
.
This class specialisation enables the support of SimpleProviderSetup()
methods of testing::TesterEnvironment
. It should be possible to set up a testing environment by calling:
env.SimpleProviderSetup<detinfo::DetectorClocksStandard>();
The provider will be available from any of these two calls:
env.Provider<detinfo::DetectorClocksStandard>(); env.Provider<detinfo::DetectorClocks>();
Definition at line 108 of file DetectorClocksStandardTestHelpers.h.
|
inlinestatic |
Definition at line 110 of file DetectorClocksStandardTestHelpers.h.