summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/tests/get_config_unittest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/dhcp4/tests/get_config_unittest.h')
-rw-r--r--src/bin/dhcp4/tests/get_config_unittest.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/bin/dhcp4/tests/get_config_unittest.h b/src/bin/dhcp4/tests/get_config_unittest.h
new file mode 100644
index 0000000..e1718e0
--- /dev/null
+++ b/src/bin/dhcp4/tests/get_config_unittest.h
@@ -0,0 +1,27 @@
+// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef GET_CONFIG_UNITTEST_H
+#define GET_CONFIG_UNITTEST_H
+
+#include <string.h>
+
+namespace isc {
+namespace dhcp {
+namespace test {
+
+/// @brief Extract a configuration as a C++ source for JSON on std::cerr
+///
+/// This function should be called when a configuration in an unit test
+/// is interesting and should be extracted. Do nothing when extract_count
+/// is negative.
+void extractConfig(const std::string& config);
+
+};
+};
+};
+
+#endif // GET_CONFIG_UNITTEST_H