BIND 10 trac1976, updated. 7ef59689d4277f0fa9fa43996c7c19ac509e741d [1976] Create (empty) test for datasrc configurator

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 20 10:56:47 UTC 2012


The branch, trac1976 has been updated
       via  7ef59689d4277f0fa9fa43996c7c19ac509e741d (commit)
      from  07236d6cc1068f21d8362c5bb47c4928741d5421 (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 7ef59689d4277f0fa9fa43996c7c19ac509e741d
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Wed Jun 20 12:56:30 2012 +0200

    [1976] Create (empty) test for datasrc configurator

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

Summary of changes:
 src/bin/auth/datasrc_configurator.h                |    4 ++--
 src/bin/auth/tests/Makefile.am                     |    1 +
 .../tests/datasrc_configurator_unittest.cc}        |    6 ++++--
 3 files changed, 7 insertions(+), 4 deletions(-)
 copy src/bin/{resolver/common.cc => auth/tests/datasrc_configurator_unittest.cc} (91%)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/datasrc_configurator.h b/src/bin/auth/datasrc_configurator.h
index cab0cce..f805c6c 100644
--- a/src/bin/auth/datasrc_configurator.h
+++ b/src/bin/auth/datasrc_configurator.h
@@ -18,7 +18,7 @@
 #include "auth_srv.h"
 
 #include <datasrc/client_list.h>
-#include <config/module_session.h>
+#include <config/ccsession.h>
 
 /// \brief A class to configure the authoritative server's data source lists
 ///
@@ -45,7 +45,7 @@ private:
                                     isc::data::ConstElementPtr config,
                                     const isc::config::ConfigData&)
     {
-        reconfigure(data);
+        reconfigure(config);
     }
 public:
     /// \brief Initializes the class.
diff --git a/src/bin/auth/tests/Makefile.am b/src/bin/auth/tests/Makefile.am
index 84fd5fa..74d3bed 100644
--- a/src/bin/auth/tests/Makefile.am
+++ b/src/bin/auth/tests/Makefile.am
@@ -44,6 +44,7 @@ run_unittests_SOURCES += command_unittest.cc
 run_unittests_SOURCES += common_unittest.cc
 run_unittests_SOURCES += query_unittest.cc
 run_unittests_SOURCES += statistics_unittest.cc
+run_unittests_SOURCES += datasrc_configurator_unittest.cc
 run_unittests_SOURCES += run_unittests.cc
 # This is a temporary workaround for #1206, where the InMemoryClient has been
 # moved to an ldopened library. We could add that library to LDADD, but that
diff --git a/src/bin/auth/tests/datasrc_configurator_unittest.cc b/src/bin/auth/tests/datasrc_configurator_unittest.cc
new file mode 100644
index 0000000..6144064
--- /dev/null
+++ b/src/bin/auth/tests/datasrc_configurator_unittest.cc
@@ -0,0 +1,19 @@
+// Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+#include <auth/datasrc_configurator.h>
+
+namespace {
+
+}



More information about the bind10-changes mailing list