From: Marcin Siodelski Date: Thu, 29 Mar 2018 08:57:37 +0000 (+0200) Subject: [master] StateModel::runModel is now virtual. X-Git-Tag: trac5458a_base~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec1dbe5f11a773440976a5f3d27b13f7190f7a8;p=thirdparty%2Fkea.git [master] StateModel::runModel is now virtual. This change was agreed on jabber with Thomas. --- diff --git a/src/lib/util/state_model.h b/src/lib/util/state_model.h index a4a67db578..938be57227 100644 --- a/src/lib/util/state_model.h +++ b/src/lib/util/state_model.h @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2013-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -289,10 +289,14 @@ public: /// model is expected to account for any possible errors so any that /// escape are treated as unrecoverable. /// + /// @note This method is made virtual for the unit tests which require + /// customizations allowing for more control over the state model + /// execution. + /// /// @param event is the next event to process /// /// This method is guaranteed not to throw. - void runModel(unsigned int event); + virtual void runModel(unsigned int event); /// @brief Conducts a normal transition to the end of the model. ///