Skip to content

Commit 2b03173

Browse files
authored
Merge pull request #48656 from makortel/fixProductRegistryTest
Avoid relying on header parsing in ProductRegistry unit test
2 parents f87c6b8 + 7ef062c commit 2b03173

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

FWCore/Framework/test/productregistry.cppunit.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ void testProductRegistry::setUp() {
110110
std::make_shared<edm::ProductDescription>(edm::InEvent,
111111
"labelovsimple",
112112
"PROD",
113-
"edm::OwnVector<edmtest::Simple>",
113+
edm::TypeID(typeid(edm::OwnVector<edmtest::Simple>)).userClassName(),
114114
"edmtestSimplesOwned",
115115
"ovsimple",
116116
edm::TypeWithDict(typeid(edm::OwnVector<edmtest::Simple>)));
117-
simpleDerivedVecBranch_ =
118-
std::make_shared<edm::ProductDescription>(edm::InEvent,
119-
"labelovsimplederived",
120-
"PROD",
121-
"edm::OwnVector<edmtest::SimpleDerived>",
122-
"edmtestSimpleDerivedsOwned",
123-
"ovsimplederived",
124-
edm::TypeWithDict(typeid(edm::OwnVector<edmtest::SimpleDerived>)));
117+
simpleDerivedVecBranch_ = std::make_shared<edm::ProductDescription>(
118+
edm::InEvent,
119+
"labelovsimplederived",
120+
"PROD",
121+
edm::TypeID(typeid(edm::OwnVector<edmtest::SimpleDerived>)).userClassName(),
122+
"edmtestSimpleDerivedsOwned",
123+
"ovsimplederived",
124+
edm::TypeWithDict(typeid(edm::OwnVector<edmtest::SimpleDerived>)));
125125
}
126126

127127
namespace {

0 commit comments

Comments
 (0)