CORDET Framework - C2 Implementation
|
Implementation of test cases for OutFactory component. More...
Go to the source code of this file.
Functions | |
CrFwBool_t | CrFwOutFactoryTestCase1 () |
Test the creation and configuration of the OutFactory singleton component. More... | |
CrFwBool_t | CrFwOutFactoryTestCase2 () |
Test the OutComponent creation service in non-nominal situations where the creation fails. More... | |
CrFwBool_t | CrFwOutFactoryTestCase3 () |
Test the Reset and Shutdown functions of the OutFactory component. More... | |
CrFwBool_t | CrFwOutFactoryTestCase4 () |
Test the OutComponent Creation and Release functions of the OutFactory component. More... | |
Implementation of test cases for OutFactory component.
This file is part of the CORDET Framework.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
For information on alternative licensing, please contact P&P Software GmbH.
Definition in file CrFwOutFactoryTestCases.c.
CrFwBool_t CrFwOutFactoryTestCase1 | ( | ) |
Test the creation and configuration of the OutFactory singleton component.
The following actions are performed in this test:
Base SM Transition: IPS->CREATED
Base SM Transition: CREATED->INITIALIZED
Base SM Transition: INITIALIZED->CONFIGURED
Initialization Procedure: Initialization Action Successful
Initialization Procedure: Initialization Check Successful
Reset Procedure: Configuration Action Successful
Reset Procedure: Configuration Check Successful
Definition at line 44 of file CrFwOutFactoryTestCases.c.
CrFwBool_t CrFwOutFactoryTestCase2 | ( | ) |
Test the OutComponent creation service in non-nominal situations where the creation fails.
The following actions are performed in this test:
CrFwOutFactoryUserPar.h
) but is not valid.CrFwOutFactoryUserPar.h
).CrFwOutFactoryUserPar.h
) but is not valid.CrFwOutFactoryUserPar.h
).CrFwOutFactoryUserPar.h
) but is not valid.CrFwOutFactoryUserPar.h
).CR_FW_MAX_NOF_PCKTS
packets and then attempt to create an OutComponent (this should fail because, for each OutComponent, a packet is required and no more packets can be created).CR_FW_OUTFACTORY_MAX_NOF_OUTCMP
OutComponents and then attempt to create one more OutComponent (this should fail because at most CR_FW_OUTFACTORY_MAX_NOF_OUTCMP
OutComponents can be created.Application Error: crIllOutCmpKind
Application Error: crOutCmpAllocationFail
Definition at line 81 of file CrFwOutFactoryTestCases.c.
CrFwBool_t CrFwOutFactoryTestCase3 | ( | ) |
Test the Reset and Shutdown functions of the OutFactory component.
The following actions are performed in this test:
Base SM Transition: CONFIGURED->FPS
Base SM Transition: CONFIGURED->CONFIGURED
Reset Procedure: Configuration Action Successful
Reset Procedure: Configuration Check Successful
Definition at line 194 of file CrFwOutFactoryTestCases.c.
CrFwBool_t CrFwOutFactoryTestCase4 | ( | ) |
Test the OutComponent Creation and Release functions of the OutFactory component.
The following actions are performed in this test:
CR_FW_OUTCMP_INIT_KIND_DESC
initializer.:.crOutCmpRelErr
is generated.Definition at line 268 of file CrFwOutFactoryTestCases.c.