summaryrefslogtreecommitdiff
path: root/libadhocutil/unittests/testFactory.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-30 13:56:52 +0100
committerDan Goodliffe <daniel.goodliffe@pressassociation.com>2015-09-30 13:56:52 +0100
commit7ec6683874d60be3a62bdc0e2f4d3eba58b390d6 (patch)
treeac83fae5a51bbfe2476ad95d80d09fab1e8bf79f /libadhocutil/unittests/testFactory.cpp
parentNo need for plugin implementations to be const (diff)
downloadlibadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.tar.bz2
libadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.tar.xz
libadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.zip
Use __VA_ARGS__ to remove need for global typedef in macro
Diffstat (limited to 'libadhocutil/unittests/testFactory.cpp')
-rw-r--r--libadhocutil/unittests/testFactory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp
index 24f731f..7a94aa9 100644
--- a/libadhocutil/unittests/testFactory.cpp
+++ b/libadhocutil/unittests/testFactory.cpp
@@ -33,6 +33,10 @@ NAMEDFACTORY("a", ImplOfThing, BaseThingFactory);
FACTORY(OtherImplOfThing, BaseThingFactory);
INSTANTIATEFACTORY(BaseThing, int, std::string);
+// Multiple factories in one compilation unit
+INSTANTIATEFACTORY(BaseThing, std::string, std::string);
+// Factories of things with commas
+INSTANTIATEFACTORY(BaseThing, std::map<std::string, std::string>);
BOOST_AUTO_TEST_CASE( ready )
{