CORDET Framework - C2 Implementation
CrFwOutLoaderTestCases.h File Reference

Declaration of the test cases for the OutLoader Component (see CrFwOutLoader.h). More...

Go to the source code of this file.

Functions

CrFwBool_t CrFwOutLoaderTestCase1 ()
 Check the configuration and operation of the OutLoader. More...
 

Detailed Description

Declaration of the test cases for the OutLoader Component (see CrFwOutLoader.h).

Author
Vaclav Cechticky vacla.nosp@m.v.ce.nosp@m.chtic.nosp@m.ky@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m
Alessandro Pasetti paset.nosp@m.ti@p.nosp@m.np-so.nosp@m.ftwa.nosp@m.re.co.nosp@m.m

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 CrFwOutLoaderTestCases.h.

Function Documentation

CrFwBool_t CrFwOutLoaderTestCase1 ( )

Check the configuration and operation of the OutLoader.

The following actions are performed in this test:

  • The OutLoader is created and it is checked that it is in state CREATED.
  • The OutLoader is created a second time and it is checked that the same instance as in the first creation operation is returned.
  • The OutLoader is initialized and reset and it is checked that it is in state CONFIGURED.
  • The instance identifier and the type identifier of the OutLoader is checked.
  • The first OutManager is created and configured.
  • The OutFactory is created and configured.
  • An OutComponent is created and configured.
  • An OutComponent is loaded into the OutLoader and it is checked that the OutLoader loads it into the first OutManager.
  • The OutManager is filled so that its POCL becomes full
  • An OutComponent is loaded into the OutLoader and it is checked that operation fails and that the OutComponent is released
Verifies:

Base Component SM Transition: IPS->CREATED

Base Component SM Transition: CREATED->INITIALIZED

Base Component SM Transition: INITIALIZED->CONFIGURED

OutLoader Load Procedure: success branch

OutLoader Load Procedure: failure branch

Returns
true if the test was successful, false otherwise.

Definition at line 47 of file CrFwOutLoaderTestCases.c.

P&P Software GmbH, Copyright 2012-2013, All Rights Reserved