RKH
test_rkhfwk_pubsub.c File Reference

Unit test for publish/subscribe mechanism of fwk module. More...

#include "unity.h"
#include "rkhfwk_pubsub.h"
#include "rkhfwk_pubsubSpy.h"
#include "Mock_rkhfwk_rdygrp.h"
#include "Mock_rkhsma.h"
#include "Mock_rkhassert.h"
#include "Mock_rkhport.h"
#include "Mock_rkhfwk_dynevt.h"
Include dependency graph for test_rkhfwk_pubsub.c:

Go to the source code of this file.

Functions

Test cases of publish/subscribe group
void test_AfterInitAllChannelsAreAvailable (void)
 
void test_SubscribeOneActiveObject (void)
 
void test_UnsubscribeOneActiveObject (void)
 
void test_UnsubscribeAllActiveObjects (void)
 
void test_PublishOneActiveObject (void)
 
void test_InvokePublishCallbackOnPublish (void)
 
void test_IgnoreSelfPublishing (void)
 
void test_Fails_SubscribeWithWrongArgs (void)
 
void test_Fails_UnsubscribeWithWrongArgs (void)
 

Variables

RKH_SMA_Trkh_sptbl [RKH_CFG_FWK_MAX_SMA]
 Priority arranged table of registered SMA. More...
 

Detailed Description

Unit test for publish/subscribe mechanism of fwk module.

Definition in file test_rkhfwk_pubsub.c.