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: ...@@ -52,7 +52,8 @@ public:
/// @brief Returns backend type. /// @brief Returns backend type.
/// ///
/// @return string db_type name /// @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. /// @brief Returns backend host.
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <dhcpsrv/testutils/test_config_backend.h> #include <dhcpsrv/testutils/test_config_backend.h>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/lexical_cast.hpp>
#include <map> #include <map>
#include <string> #include <string>
...@@ -23,19 +22,18 @@ namespace isc { ...@@ -23,19 +22,18 @@ namespace isc {
namespace dhcp { namespace dhcp {
namespace test { 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 /// This backend should be used for unit testing the DHCPv4 server and the
/// empty pointer of appropriate type. API calls which return a collection of /// commands which manpiluate the configuration information stored in the
/// entires will return an empty collection of the appropriate type. /// database.
/// ///
/// In addition provides static register and unregister methods so it may be /// This backend stores server configuration information in memory.
/// registered with a configuration backend manager.
class TestConfigBackendDHCPv4 : public TestConfigBackend<ConfigBackendDHCPv4> { class TestConfigBackendDHCPv4 : public TestConfigBackend<ConfigBackendDHCPv4> {
public: public:
/// @brief Constructor /// @brief Constructor
/// ///
/// /// @param params Database connection parameters.
TestConfigBackendDHCPv4(const db::DatabaseConnection::ParameterMap& params) TestConfigBackendDHCPv4(const db::DatabaseConnection::ParameterMap& params)
: TestConfigBackend(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