face: consistently use the template method pattern in ProtocolFactory
Change-Id: Ied0bf02cfcdffc7e9b2c28c5452441c01f98ccbc
diff --git a/tests/daemon/face/face-system-fixture.hpp b/tests/daemon/face/face-system-fixture.hpp
index b3ae91f..b7254fa 100644
--- a/tests/daemon/face/face-system-fixture.hpp
+++ b/tests/daemon/face/face-system-fixture.hpp
@@ -161,37 +161,19 @@
class DummyProtocolFactory : public ProtocolFactory
{
public:
- DummyProtocolFactory(const CtorParams& params)
- : ProtocolFactory(params)
- {
- }
+ using ProtocolFactory::ProtocolFactory;
void
- processConfig(OptionalConfigSection configSection,
- FaceSystem::ConfigContext& context) final
+ doProcessConfig(OptionalConfigSection configSection,
+ FaceSystem::ConfigContext& context) final
{
processConfigHistory.push_back({configSection, context.isDryRun,
context.generalConfig.wantCongestionMarking});
if (!context.isDryRun) {
- this->providedSchemes = this->newProvidedSchemes;
+ providedSchemes = newProvidedSchemes;
}
}
- void
- createFace(const CreateFaceRequest& req,
- const FaceCreatedCallback& onCreated,
- const FaceCreationFailedCallback& onFailure) final
- {
- BOOST_FAIL("createFace should not be called");
- }
-
- std::vector<shared_ptr<const Channel>>
- getChannels() const final
- {
- BOOST_FAIL("getChannels should not be called");
- return {};
- }
-
public:
struct ProcessConfigArgs
{