Fix unittest error
[platform/core/appfw/message-port.git] / test / unit_tests / test_message_port.cc
index f06938b..faf6cfb 100644 (file)
@@ -509,6 +509,12 @@ TEST_F(MessagePortTest, message_port_check_remote_port_n) {
 }
 
 TEST_F(MessagePortTest, message_port_check_trusted_remote_port) {
+  pkgmgrinfo_cert_compare_result_type_e res = PMINFO_CERT_COMPARE_MATCH;
+  EXPECT_CALL(GetMock<PkgmgrInfoMock>(),
+      pkgmgrinfo_pkginfo_compare_usr_app_cert_info(_, _, _, _)).
+      WillOnce(DoAll(SetArgPointee<3>(res),
+                      Return(0)));
+
   if (__call_sync_reply != nullptr)
     g_variant_unref(__call_sync_reply);
   __call_sync_reply = g_variant_new("(b)", true);