summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/tests/get_config_unittest.cc.skel
diff options
context:
space:
mode:
authorAndrei Pavel <andrei.pavel@qualitance.com>2017-08-18 09:27:29 +0200
committerAndrei Pavel <andrei.pavel@qualitance.com>2017-08-18 09:34:26 +0200
commit6e5ddf2725b14d37f3ee1755352f1bb206f04687 (patch)
tree8ef3dfa91337bb2ebcf82536f802b21b1f2eb3d6 /src/bin/dhcp4/tests/get_config_unittest.cc.skel
parentreverted some changes which are too pedantic (diff)
downloadkea-6e5ddf2725b14d37f3ee1755352f1bb206f04687.tar.xz
kea-6e5ddf2725b14d37f3ee1755352f1bb206f04687.zip
minor changes:
* dynamic exception specifications are deprecated in C++11 (throw on function definition) * INSTANTIATE_TEST_CASE_P gives a warning about variadic arguments having at least one argument. The IntToString functor is what it requires for test cases to be displayed correctly. * Options should be merged with formatted option included in the identifier. This was unit-tested, but masked by an incorrect csv-format value in test data. Merge not used in actual code, but used in Cassandra PR. * ifdefs in MACROS are not portable * added missing doxygen comments
Diffstat (limited to 'src/bin/dhcp4/tests/get_config_unittest.cc.skel')
-rw-r--r--src/bin/dhcp4/tests/get_config_unittest.cc.skel16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/bin/dhcp4/tests/get_config_unittest.cc.skel b/src/bin/dhcp4/tests/get_config_unittest.cc.skel
index 825a6d62ab..0c23840871 100644
--- a/src/bin/dhcp4/tests/get_config_unittest.cc.skel
+++ b/src/bin/dhcp4/tests/get_config_unittest.cc.skel
@@ -338,8 +338,16 @@ TEST_P(Dhcp4GetConfigTest, run) {
EXPECT_TRUE(isEquivalent(unparsed, unparsed2));
}
-/// Define the parameterized test loop
-INSTANTIATE_TEST_CASE_P(Dhcp4GetConfigTest, Dhcp4GetConfigTest,
- ::testing::Range(static_cast<size_t>(0), max_config_counter));
-
+class IntToString {
+public:
+ std::string operator()(const testing::TestParamInfo<size_t>& n) {
+ return to_string(n.param);
+ }
};
+
+/// Define the parameterized test loop.
+INSTANTIATE_TEST_CASE_P(Dhcp4GetConfigTest, Dhcp4GetConfigTest,
+ ::testing::Range(static_cast<size_t>(0),
+ max_config_counter),
+ IntToString());
+} // namespace