File indexing completed on 2025-09-12 10:00:42
0001
0002
0003
0004
0005 #include "cppunit/extensions/HelperMacros.h"
0006 #include "FWCore/Framework/interface/EventSetupsController.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0009
0010 #include <string>
0011 #include <vector>
0012
0013 namespace {
0014 edm::ActivityRegistry activityRegistry;
0015 }
0016
0017 class TestEventSetupsController : public CppUnit::TestFixture {
0018 CPPUNIT_TEST_SUITE(TestEventSetupsController);
0019
0020 CPPUNIT_TEST(constructorTest);
0021
0022 CPPUNIT_TEST_SUITE_END();
0023
0024 public:
0025 void setUp() {}
0026 void tearDown() {}
0027
0028 void constructorTest();
0029 };
0030
0031
0032 CPPUNIT_TEST_SUITE_REGISTRATION(TestEventSetupsController);
0033
0034 void TestEventSetupsController::constructorTest() {
0035 edm::eventsetup::EventSetupsController esController;
0036
0037 CPPUNIT_ASSERT(esController.mustFinishConfiguration() == true);
0038
0039 edm::ParameterSet pset;
0040 std::vector<std::string> emptyVStrings;
0041 pset.addParameter<std::vector<std::string> >("@all_esprefers", emptyVStrings);
0042 pset.addParameter<std::vector<std::string> >("@all_essources", emptyVStrings);
0043 pset.addParameter<std::vector<std::string> >("@all_esmodules", emptyVStrings);
0044
0045 esController.makeProvider(pset, &activityRegistry);
0046 }