[asterisk-scf-commits] asterisk-scf/release/routing.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Aug 1 13:58:09 CDT 2011


branch "master" has been updated
       via  1c95428c5692aa43ca2989f14d04bfd22255c848 (commit)
      from  993ad008145aa1e618679b910844de5f2ad212d6 (commit)

Summary of changes:
 test/MockSession.cpp |   24 ++++++++++++++++++++++++
 test/MockSession.h   |   14 ++++++++++++++
 2 files changed, 38 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit 1c95428c5692aa43ca2989f14d04bfd22255c848
Author: Joshua Colp <jcolp at digium.com>
Date:   Mon Aug 1 15:30:47 2011 -0300

    Add support for SessionController and streams.

diff --git a/test/MockSession.cpp b/test/MockSession.cpp
index 7f904c0..319eff5 100644
--- a/test/MockSession.cpp
+++ b/test/MockSession.cpp
@@ -170,6 +170,30 @@ void MockSession::getBridge_async(
     cb->ice_response(mBridgePrx);
 }
 
+void MockSession::getStreams_async(
+    const AsteriskSCF::SessionCommunications::V1::AMD_Session_getStreamsPtr& cb,
+    const Ice::Current&)
+{
+    cb->ice_response(AsteriskSCF::Media::V1::StreamInformationDict());
+}
+
+void MockSession::setAndGetSessionController_async(
+    const AsteriskSCF::SessionCommunications::V1::AMD_Session_setAndGetSessionControllerPtr& cb,
+    const AsteriskSCF::SessionCommunications::V1::SessionControllerPrx&,
+    const Ice::Current&)
+{
+    cb->ice_response(0);
+}
+
+void MockSession::removeSessionController_async(
+    const AsteriskSCF::SessionCommunications::V1::AMD_Session_removeSessionControllerPtr& cb,
+    const AsteriskSCF::SessionCommunications::V1::SessionControllerPrx&,
+    const Ice::Current&)
+{
+    cb->ice_response();
+}
+
+
 /**
  * We're not actually dispatching this AMD
  * method in this test code.
diff --git a/test/MockSession.h b/test/MockSession.h
index 099b483..55b821a 100644
--- a/test/MockSession.h
+++ b/test/MockSession.h
@@ -75,6 +75,20 @@ public:
             const AsteriskSCF::SessionCommunications::V1::SessionListenerPrx& listener,
             const Ice::Current &);
 
+    void getStreams_async(
+        const AsteriskSCF::SessionCommunications::V1::AMD_Session_getStreamsPtr&,
+        const Ice::Current&);
+
+    void setAndGetSessionController_async(
+        const AsteriskSCF::SessionCommunications::V1::AMD_Session_setAndGetSessionControllerPtr&,
+        const AsteriskSCF::SessionCommunications::V1::SessionControllerPrx&,
+        const Ice::Current&);
+
+    void removeSessionController_async(
+        const AsteriskSCF::SessionCommunications::V1::AMD_Session_removeSessionControllerPtr&,
+        const AsteriskSCF::SessionCommunications::V1::SessionControllerPrx&,
+        const Ice::Current&);
+
 public:
     void setProxy(const AsteriskSCF::SessionCommunications::V1::SessionPrx& sessionPrx);
     const std::string& getId() const {return mId;}

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


-- 
asterisk-scf/release/routing.git



More information about the asterisk-scf-commits mailing list