Browse Source

[1924] Update mocks with the new parameter

Michal 'vorner' Vaner 12 years ago
parent
commit
e62a5e2f0d

+ 1 - 1
src/lib/config/tests/fake_session.cc

@@ -183,7 +183,7 @@ FakeSession::unsubscribe(std::string group, std::string instance) {
 
 int
 FakeSession::group_sendmsg(ConstElementPtr msg, std::string group,
-                           std::string to, std::string)
+                           std::string to, std::string, bool)
 {
     if (throw_on_send_) {
         isc_throw(Exception, "Throw on send is set in FakeSession");

+ 2 - 1
src/lib/config/tests/fake_session.h

@@ -61,7 +61,8 @@ public:
     virtual int group_sendmsg(isc::data::ConstElementPtr msg,
                               std::string group,
                               std::string instance = "*",
-                              std::string to = "*");
+                              std::string to = "*",
+                              bool want_answer = false);
     virtual bool group_recvmsg(isc::data::ConstElementPtr& envelope,
                                isc::data::ConstElementPtr& msg,
                                bool nonblock = true,

+ 1 - 1
src/lib/testutils/mockups.h

@@ -48,7 +48,7 @@ public:
     virtual void disconnect() {}
 
     virtual int group_sendmsg(isc::data::ConstElementPtr msg, std::string group,
-                              std::string, std::string)
+                              std::string, std::string, bool)
     {
         if (!send_ok_) {
             isc_throw(isc::cc::SessionError,