2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

[3696] Removed unused parameter.

This commit is contained in:
Marcin Siodelski 2016-01-12 17:17:09 +01:00
parent 9497258cf7
commit a08a044bcf

View File

@ -123,11 +123,9 @@ public:
/// @param dbaccess set of database access parameters to check /// @param dbaccess set of database access parameters to check
/// @param keyval Array of "const char*" strings in the order keyword, /// @param keyval Array of "const char*" strings in the order keyword,
/// value, keyword, value ... A NULL entry terminates the list. /// value, keyword, value ... A NULL entry terminates the list.
/// @param u Universe (V4 or V6).
void checkAccessString(const char* trace_string, void checkAccessString(const char* trace_string,
const DbAccessParser::StringPairMap& parameters, const DbAccessParser::StringPairMap& parameters,
const char* keyval[], const char* keyval[]) {
Option::Universe u = Option::V4) {
SCOPED_TRACE(trace_string); SCOPED_TRACE(trace_string);
// Construct a map of keyword value pairs. // Construct a map of keyword value pairs.
@ -292,7 +290,7 @@ TEST_F(DbAccessParserTest, persistV6Memfile) {
EXPECT_NO_THROW(parser.build(json_elements)); EXPECT_NO_THROW(parser.build(json_elements));
checkAccessString("Valid memfile", parser.getDbAccessParameters(), checkAccessString("Valid memfile", parser.getDbAccessParameters(),
config, Option::V6); config);
} }
// This test checks that the parser accepts the valid value of the // This test checks that the parser accepts the valid value of the
@ -310,7 +308,7 @@ TEST_F(DbAccessParserTest, validLFCInterval) {
TestDbAccessParser parser("lease-database", DbAccessParser::LEASE_DB); TestDbAccessParser parser("lease-database", DbAccessParser::LEASE_DB);
EXPECT_NO_THROW(parser.build(json_elements)); EXPECT_NO_THROW(parser.build(json_elements));
checkAccessString("Valid LFC Interval", parser.getDbAccessParameters(), checkAccessString("Valid LFC Interval", parser.getDbAccessParameters(),
config, Option::V6); config);
} }
// This test checks that the parser rejects the negative value of the // This test checks that the parser rejects the negative value of the