BIND 10 trac3232, updated. b11c068ec0e9d5614b8f7af2c4040466942e29ab [3232] Open fake interfaces for Rebind tests.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 11 20:16:12 UTC 2014


The branch, trac3232 has been updated
       via  b11c068ec0e9d5614b8f7af2c4040466942e29ab (commit)
      from  52bc81f617218678d89a061e790dfd1f09d6dd36 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b11c068ec0e9d5614b8f7af2c4040466942e29ab
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Mar 11 21:16:01 2014 +0100

    [3232] Open fake interfaces for Rebind tests.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/dhcp6/tests/Makefile.am        |    1 +
 src/bin/dhcp6/tests/rebind_unittest.cc |   13 +++++++++++++
 2 files changed, 14 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/tests/Makefile.am b/src/bin/dhcp6/tests/Makefile.am
index 1cbbf6d..736e2af 100644
--- a/src/bin/dhcp6/tests/Makefile.am
+++ b/src/bin/dhcp6/tests/Makefile.am
@@ -90,6 +90,7 @@ nodist_dhcp6_unittests_SOURCES += marker_file.h test_libraries.h
 dhcp6_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 dhcp6_unittests_LDFLAGS = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
 dhcp6_unittests_LDADD = $(GTEST_LDADD)
+dhcp6_unittests_LDADD += $(top_builddir)/src/lib/dhcp/tests/libdhcptest.la
 dhcp6_unittests_LDADD += $(top_builddir)/src/lib/asiolink/libb10-asiolink.la
 dhcp6_unittests_LDADD += $(top_builddir)/src/lib/cc/libb10-cc.la
 dhcp6_unittests_LDADD += $(top_builddir)/src/lib/config/libb10-cfgclient.la
diff --git a/src/bin/dhcp6/tests/rebind_unittest.cc b/src/bin/dhcp6/tests/rebind_unittest.cc
index de7e59b..2de10d1 100644
--- a/src/bin/dhcp6/tests/rebind_unittest.cc
+++ b/src/bin/dhcp6/tests/rebind_unittest.cc
@@ -15,6 +15,7 @@
 #include <config.h>
 #include <asiolink/io_address.h>
 #include <cc/data.h>
+#include <dhcp/tests/iface_mgr_test_config.h>
 #include <dhcp6/config_parser.h>
 #include <dhcp6/tests/dhcp6_test_utils.h>
 #include <dhcp6/tests/dhcp6_client.h>
@@ -198,6 +199,15 @@ const char* REBIND_CONFIGS[] = {
 /// @brief Test fixture class for testing Rebind.
 class RebindTest : public Dhcpv6SrvTest {
 public:
+
+    /// @brief Constructor.
+    ///
+    /// Sets up fake interfaces.
+    RebindTest()
+        : Dhcpv6SrvTest(),
+          iface_mgr_test_config_(true) {
+    }
+
     /// @brief Configure the DHCPv6 server using the JSON string.
     ///
     /// @param config New configuration in JSON format.
@@ -214,6 +224,9 @@ public:
     void requestLease(const int config_index, const int subnets_num,
                       Dhcp6Client& client);
 
+    /// @brief Interface Manager's fake configuration control.
+    IfaceMgrTestConfig iface_mgr_test_config_;
+
 };
 
 void



More information about the bind10-changes mailing list