summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2022-01-20 13:15:52 +0100
committerThomas Markwalder <tmark@isc.org>2022-01-26 20:54:39 +0100
commit2e24b52ff0969aa2cf7e5c3be29e38bf53470d81 (patch)
tree825e9389c5d62208244511a4e2623e05dcdb0aa2 /src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h
parent[#2275] Refactored pgsql_cb unit tests (diff)
downloadkea-2e24b52ff0969aa2cf7e5c3be29e38bf53470d81.tar.xz
kea-2e24b52ff0969aa2cf7e5c3be29e38bf53470d81.zip
[#2275] Refactored MySQL CB DHCPv4 unit tests
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc Refactored to use GenericConfigBackendDHCPv4Test, moved individual tests into functions in GenericConfigBackendDHCPv4Test src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp4_unittest.cc src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.* Added functions for individual tests taken from mysql_cb_dhcp4_unittest.cc src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.* MySqlGenericBackendTest::countRows() - chagned to static
Diffstat (limited to 'src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h')
-rw-r--r--src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h b/src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h
index 5e4d7a4d71..843b6c21a5 100644
--- a/src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h
+++ b/src/lib/dhcpsrv/testutils/mysql_generic_backend_unittest.h
@@ -35,7 +35,7 @@ public:
/// @param conn MySql connection to be used for the query.
/// @param table Table name.
/// @return Number of rows in the specified table.
- size_t countRows(db::MySqlConnection& conn, const std::string& table) const;
+ static size_t countRows(db::MySqlConnection& conn, const std::string& table);
};
}