From 2395206c904ed8253b90b19f3eca959730c57d6a Mon Sep 17 00:00:00 2001 From: christian mueller Date: Mon, 14 May 2012 11:03:52 +0200 Subject: * fixed AmRoutingTest. Fixed missing mpDBusWrapper Initialisation Signed-off-by: christian mueller --- .../test/AmRoutingInterfaceTest/CAmRoutingInterfaceTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AudioManagerDaemon/test') diff --git a/AudioManagerDaemon/test/AmRoutingInterfaceTest/CAmRoutingInterfaceTest.cpp b/AudioManagerDaemon/test/AmRoutingInterfaceTest/CAmRoutingInterfaceTest.cpp index a5c82de..fe3694b 100644 --- a/AudioManagerDaemon/test/AmRoutingInterfaceTest/CAmRoutingInterfaceTest.cpp +++ b/AudioManagerDaemon/test/AmRoutingInterfaceTest/CAmRoutingInterfaceTest.cpp @@ -214,6 +214,8 @@ TEST_F(CAmRoutingInterfaceTest,setSinkSoundProperty) am_domainID_t domainID; am_Handle_s handle; am_SoundProperty_s soundProperty; + soundProperty.value=5; + soundProperty.type=SP_EXAMPLE_MID; std::vector listHandles; pCF.createSink(sink); pCF.createDomain(domain); @@ -221,9 +223,11 @@ TEST_F(CAmRoutingInterfaceTest,setSinkSoundProperty) domain.busname = "mock"; sink.sinkID = 2; sink.domainID = 1; + sink.listSoundProperties.push_back(soundProperty); ASSERT_EQ(E_OK, pDatabaseHandler.enterDomainDB(domain,domainID)); ASSERT_EQ(E_OK, pDatabaseHandler.enterSinkDB(sink,sinkID)); EXPECT_CALL(pMockInterface,asyncSetSinkSoundProperty(_,sinkID,_)).WillOnce(Return(E_OK)); + soundProperty.value=10; ASSERT_EQ(E_OK, pControlReceiver.setSinkSoundProperty(handle,sinkID,soundProperty)); ASSERT_NE(handle.handle, 0); ASSERT_EQ(handle.handleType, H_SETSINKSOUNDPROPERTY); -- cgit v1.2.1