Commit 81140d6b authored by Marcin Siodelski's avatar Marcin Siodelski

[#99,!176] Updated commentary in the test config backend for DHCPv4.

parent 194f7617
......@@ -52,7 +52,8 @@ public:
/// @brief Returns backend type.
/// @return string db_type name
virtual std::string getType() const { return (db_type_);
virtual std::string getType() const {
return (db_type_);
/// @brief Returns backend host.
......@@ -14,7 +14,6 @@
#include <dhcpsrv/testutils/test_config_backend.h>
#include <boost/shared_ptr.hpp>
#include <boost/lexical_cast.hpp>
#include <map>
#include <string>
......@@ -23,19 +22,18 @@ namespace isc {
namespace dhcp {
namespace test {
/// @brief Test backend that implements all of the DHCPv4 API calls
/// @brief Test config backend that implements all of the DHCPv4 API calls
/// Currently all API get calls which return a single entry, will return an
/// empty pointer of appropriate type. API calls which return a collection of
/// entires will return an empty collection of the appropriate type.
/// This backend should be used for unit testing the DHCPv4 server and the
/// commands which manpiluate the configuration information stored in the
/// database.
/// In addition provides static register and unregister methods so it may be
/// registered with a configuration backend manager.
/// This backend stores server configuration information in memory.
class TestConfigBackendDHCPv4 : public TestConfigBackend<ConfigBackendDHCPv4> {
/// @brief Constructor
/// @param params Database connection parameters.
TestConfigBackendDHCPv4(const db::DatabaseConnection::ParameterMap& params)
: TestConfigBackend(params) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment