Static Public Member Functions | List of all members
testing::SimpleEnvironmentSetupClass< detinfo::DetectorClocksStandard, TestEnv > Struct Template Reference

Environment setup helper for DetectorClocksStandard. More...

#include <DetectorClocksStandardTestHelpers.h>

Static Public Member Functions

static detinfo::DetectorClocksStandardsetup (TestEnv &env)
 

Detailed Description

template<typename TestEnv>
struct testing::SimpleEnvironmentSetupClass< detinfo::DetectorClocksStandard, TestEnv >

Environment setup helper for DetectorClocksStandard.

Template Parameters
TestEnvtype of environment to set up
See also
simpleEnvironmentSetup

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.

Member Function Documentation

template<typename TestEnv >
static detinfo::DetectorClocksStandard* testing::SimpleEnvironmentSetupClass< detinfo::DetectorClocksStandard, TestEnv >::setup ( TestEnv &  env)
inlinestatic

Definition at line 110 of file DetectorClocksStandardTestHelpers.h.

111  {
114  TestEnv>(env, "DetectorClocksService");
115  }
Class used for the conversion of times between different formats and references.
Prov * SimpleEnvironmentStandardSetupByName(TestEnv &env, std::string service_name)
Basic implementation of a environment setup helper.
Implementation of detinfo::DetectorClocks interface with fixed settings from configuration.

The documentation for this struct was generated from the following file: