1234567891011121314151617181920212223242526272829303132333435363738 |
- // 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 <config.h>
- #include <agent/ctrl_agent_command_mgr.h>
- #include <gtest/gtest.h>
- 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();
- }
- };
- }
|