diff options
author | Eike Rathke <erack@redhat.com> | 2012-03-23 10:55:09 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-07-17 16:39:40 +0200 |
commit | 70a5f05a4f08b45acc13df80e7b7ee5cb2610c52 (patch) | |
tree | 0361115ff2ee66fa37b7b9e20fd806d3b05c95de /tubes/qa | |
parent | 14efb92f907215f72cf841da98996bc9d39fc9e7 (diff) |
tubes: wrapper to enable tubes
If environment variable LIBO_TUBES is set, Calc's ScDocFuncSend and
ScDocFuncRecv act over tubes.
Diffstat (limited to 'tubes/qa')
-rw-r--r-- | tubes/qa/test_manager.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
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); |