// Copyright (C) 2017 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 // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include #include #include using namespace isc::agent; namespace { /// @brief Test fixture class for @ref CtrlAgentCommandMgr. /// /// @todo Add tests for various commands, including the cases when the /// commands are forwarded to other servers via unix sockets. /// Meanwhile, this is just a placeholder for the tests. class CtrlAgentCommandMgrTest : public ::testing::Test { public: /// @brief Constructor. /// /// Deregisters all commands except 'list-commands'. CtrlAgentCommandMgrTest() { CtrlAgentCommandMgr::instance().deregisterAll(); } /// @brief Destructor. /// /// Deregisters all commands except 'list-commands'. virtual ~CtrlAgentCommandMgrTest() { CtrlAgentCommandMgr::instance().deregisterAll(); } }; }