From 70a5f05a4f08b45acc13df80e7b7ee5cb2610c52 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 23 Mar 2012 10:55:09 +0100 Subject: tubes: wrapper to enable tubes If environment variable LIBO_TUBES is set, Calc's ScDocFuncSend and ScDocFuncRecv act over tubes. --- tubes/qa/test_manager.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tubes/qa') diff --git a/tubes/qa/test_manager.cxx b/tubes/qa/test_manager.cxx index 540728a5fa39..31148efe5f13 100644 --- a/tubes/qa/test_manager.cxx +++ b/tubes/qa/test_manager.cxx @@ -65,6 +65,7 @@ public: void testDestroyManager2(); void testDestroyAccepterContact(); void testFailAlways(); + DECL_STATIC_LINK( TestTeleTubes, ReceiverCallback, TeleConference* ); GMainLoop* mpMainLoop; void spinMainLoop(); @@ -213,12 +214,12 @@ void TestTeleTubes::testContactList() void TestTeleTubes::testSetupManager1() { - mpManager1 = new TeleManager( true); + mpManager1 = new TeleManager( STATIC_LINK( this, TestTeleTubes, ReceiverCallback), true); } void TestTeleTubes::testSetupManager2() { - mpManager2 = new TeleManager; + mpManager2 = new TeleManager( STATIC_LINK( this, TestTeleTubes, ReceiverCallback)); } void TestTeleTubes::testPrepareAccountManager1() @@ -235,6 +236,16 @@ void TestTeleTubes::testPrepareAccountManager2() CPPUNIT_ASSERT( eStatus == TeleManager::AMS_PREPARED); } +IMPL_STATIC_LINK_NOINSTANCE( TestTeleTubes, ReceiverCallback, TeleConference*, pConference ) +{ + SAL_INFO( "tubes", "TestTeleTubes::ReceiverCallback: " << pConference); + if (pConference) + { + // we could pop a packet here + } + return 0; +} + void TestTeleTubes::testStartBuddySession1() { TpAccount *pAcc1 = mpManager1->getAccount(maOffererIdentifier); -- cgit