From 7666421ecaa46c0244e6272db80e0192aed47a28 Mon Sep 17 00:00:00 2001 From: Aleksandar Donchev Date: Fri, 28 Mar 2014 16:34:25 +0100 Subject: * Some unit tests fixed due issues occured on pocky build systems. Signed-off-by: Christian Linke --- PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'PluginCommandInterfaceCAPI') diff --git a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp index 7cbc0c8..66bd0dc 100644 --- a/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp +++ b/PluginCommandInterfaceCAPI/test/CAmCommandSenderCAPITest.cpp @@ -85,6 +85,10 @@ void* run_service(void*) } else { + ON_CALL(*env->mpCommandReceive, getListMainSources(_)).WillByDefault(Return(E_OK)); + ON_CALL(*env->mpCommandReceive, getListMainSinks(_)).WillByDefault(Return(E_OK)); + ON_CALL(*env->mpCommandReceive, getListMainSourceSoundProperties(_,_)).WillByDefault(Return(E_OK)); + EXPECT_CALL(*env->mpCommandReceive,confirmCommandReady(10,_)); plugin.setCommandReady(10); socketHandler.start_listenting(); @@ -203,6 +207,8 @@ CAmCommandSenderCAPITest::~CAmCommandSenderCAPITest() void CAmCommandSenderCAPITest::SetUp() { ::testing::GTEST_FLAG(throw_on_failure) = false; + ::testing::FLAGS_gmock_verbose = "error"; +// ::testing::DefaultValue::Set(am_Error_e(E_OK)); } void CAmCommandSenderCAPITest::TearDown() -- cgit v1.2.1