Skip to content
Snippets Groups Projects
Commit 89cb7a2f authored by Adrien Kirjak's avatar Adrien Kirjak
Browse files

Added test cases


Signed-off-by: default avatarAdrien Kirjak <adrien.kirjak@ericsson.com>
parent 5bf0a980
No related branches found
No related tags found
1 merge request!55Added test cases
Showing
with 287 additions and 1280 deletions
...@@ -26,16 +26,19 @@ module Sem_060101_TopLevel_007 { ...@@ -26,16 +26,19 @@ module Sem_060101_TopLevel_007 {
testcase TC_Sem_060101_TopLevel_007() runs on GeneralComp { testcase TC_Sem_060101_TopLevel_007() runs on GeneralComp {
var universal charstring v_a := char(U0041); //USI notation for character "A" var universal charstring v_a := char(U0041); //USI notation for character "A"
var universal charstring v_b := char(U0171); //USI notation for character "ű" var universal charstring v_b := char(U0171); //USI notation for character "ű"
var universal charstring v_c := char(U41); //USI notation for character "A" without leading zeroes var universal charstring v_c := char(U41); //USI notation for character "A" without leading zeroes
var universal charstring v_d := char(U+171,U41); //USI notation for character "ű" and "A" without leading zeroes and + sign notation var universal charstring v_d := char(U+171,U41); //USI notation for character "ű" and "A" without leading zeroes and + sign notation
var universal charstring a_exp := "A";
var universal charstring b_exp := "ű";
var universal charstring c_exp := "A";
var universal charstring d_exp := "űA";
if (match(v_a,"A") and if (match(v_a,a_exp) and
match(v_b,"ű") and match(v_b,"ű") and
match(v_c,"A") and match(v_c,c_exp) and
match(v_d,"űA")) match(v_d,"űA"))
{ {
setverdict(pass,"v_a:",v_a, "v_b:",v_b, "v_c:",v_c,"v_d:",v_d); setverdict(pass,"v_a:",v_a, "v_b:",v_b, "v_c:",v_c,"v_d:",v_d);
} }
...@@ -47,4 +50,6 @@ module Sem_060101_TopLevel_007 { ...@@ -47,4 +50,6 @@ module Sem_060101_TopLevel_007 {
control{ control{
execute(TC_Sem_060101_TopLevel_007()); execute(TC_Sem_060101_TopLevel_007());
} }
} }
\ No newline at end of file
/***************************************************
** @author STF 451, re-numbering done by STF 470 and 487
** @version 0.0.1
** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass reject
***************************************************/
module NegSem_060201_RecordTypeValues_001 {
type component GeneralComp {
}
type record R {
integer f1,
integer f2 optional,
integer f3,
integer f4 optional,
integer f5 optional
}
const R v_assigned := { 1, 2 }
with { optional "implicit omit" }
testcase TC_NegSem_060201_RecordTypeValues_001() runs on GeneralComp {
template R m_check := { 1, omit, 2, omit, omit };
if (match(v_assigned,m_check)) { //cannot match undefined components of v_assigned
setverdict(pass);
}
else {
setverdict(fail, "cannot match: ", v_assigned, " with ", m_check);
}
}
control {
execute(TC_NegSem_060201_RecordTypeValues_001());
}
}
/***************************************************
** @author STF 451, re-numbering done by STF 470 and 487
** @version 0.0.1
** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass reject
***************************************************/
module NegSem_060201_RecordTypeValues_002 {
type component GeneralComp {
}
type record R {
integer f1,
integer f2 optional,
integer f3,
integer f4 optional,
integer f5 optional
}
testcase TC_NegSem_060201_RecordTypeValues_002() runs on GeneralComp {
var R v_assigned := { 1, 2 } with { optional "implicit omit" }
//rejected since f3 stays undefined
}
control {
execute(TC_NegSem_060201_RecordTypeValues_002());
}
}
...@@ -3,32 +3,33 @@ ...@@ -3,32 +3,33 @@
** @version 0.0.1 ** @version 0.0.1
** @desc Test cases for clause 6.2 ** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled ** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass accept, ttcn3verdict:pass ** @verdict pass reject
***************************************************/ ***************************************************/
module Sem_060201_RecordTypeValues_001 { module Sem_060201_RecordTypeValues_001 {
type component GeneralComp { type component GeneralComp {
} }
type record R { type record R {
integer f1, integer f1,
integer f2 optional, integer f2 optional,
integer f3, integer f3,
integer f4 optional, integer f4 optional,
integer f5 optional integer f5 optional
} }
const R v_assigned := { 1, -, 2 } with { optional "implicit omit" } const R v_assigned := { 1, 2 }
with { optional "implicit omit" }
testcase TC_Sem_060201_RecordTypeValues_001() runs on GeneralComp { testcase TC_Sem_060201_RecordTypeValues_001() runs on GeneralComp {
template R m_check := { 1, omit, 2, omit, omit } template R m_check := { 1, omit, 2, omit, omit };
if (match(v_assigned,m_check)) { if (match(v_assigned,m_check)) { //cannot match undefined components of v_assigned
setverdict(pass); setverdict(fail, "somehow it matched?");
} }
else { else {
setverdict(fail); setverdict(pass, "cannot match: ", v_assigned, " with ", m_check);
} }
} }
...@@ -37,4 +38,4 @@ module Sem_060201_RecordTypeValues_001 { ...@@ -37,4 +38,4 @@ module Sem_060201_RecordTypeValues_001 {
execute(TC_Sem_060201_RecordTypeValues_001()); execute(TC_Sem_060201_RecordTypeValues_001());
} }
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled ** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass accept, ttcn3verdict:pass ** @verdict pass accept, ttcn3verdict:pass
***************************************************/ ***************************************************/
module Sem_060201_RecordTypeValues_002 { module Sem_060201_RecordTypeValues_002 {
type component GeneralComp { type component GeneralComp {
} }
...@@ -18,13 +18,13 @@ module Sem_060201_RecordTypeValues_002 { ...@@ -18,13 +18,13 @@ module Sem_060201_RecordTypeValues_002 {
integer f5 optional integer f5 optional
} }
const R c_assigned := { 1, -, 2 } with { optional "implicit omit" } const R v_assigned := { 1, -, 2 } with { optional "implicit omit" }
testcase TC_Sem_060201_RecordTypeValues_002() runs on GeneralComp { testcase TC_Sem_060201_RecordTypeValues_002() runs on GeneralComp {
template R m_check := { 1, omit, 2, omit, omit } template R m_check := { 1, omit, 2, omit, omit }
if (match(c_assigned,m_check)) { if (match(v_assigned,m_check)) {
setverdict(pass); setverdict(pass);
} }
else { else {
......
/***************************************************
** @author STF470
** @version 0.0.1
** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass reject
***************************************************/
module NegSem_060202_SetTypeValues_002 {
type component GeneralComp {
}
type set S {
integer f1,
integer f2 optional,
integer f3,
integer f4 optional,
integer f5 optional
}
testcase TC_NegSem_060202_SetTypeValues_002() runs on GeneralComp {
var S v_assigned := { 1, 2 } with { optional "implicit omit" }
template S m_check := { 1, omit, 2, omit, omit }
if (match(v_assigned,m_check)) { //cannot match undefined components of v_assigned
setverdict(pass);
}
}
control {
execute(TC_NegSem_060202_SetTypeValues_002());
}
}
/***************************************************
** @author STF470
** @version 0.0.1
** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass reject
***************************************************/
module NegSem_060202_SetTypeValues_003 {
type component GeneralComp {
}
type set S {
integer f1,
integer f2 optional,
integer f3,
integer f4 optional,
integer f5 optional
}
testcase TC_NegSem_060202_SetTypeValues_003() runs on GeneralComp {
var S v_assigned := { 1, 2 } with { optional "implicit omit" } //rejected since f3 stays undefined
}
control {
execute(TC_NegSem_060202_SetTypeValues_003());
}
}
...@@ -3,37 +3,39 @@ ...@@ -3,37 +3,39 @@
** @version 0.0.1 ** @version 0.0.1
** @desc Test cases for clause 6.2 ** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled ** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass accept, ttcn3verdict:pass ** @verdict pass reject
***************************************************/ ***************************************************/
module Sem_060202_SetTypeValues_005 { module Sem_060202_SetTypeValues_005 {
type component GeneralComp { type component GeneralComp {
} }
type set S { type set S {
integer f1, integer f1,
integer f2 optional, integer f2 optional,
integer f3, integer f3,
integer f4 optional, integer f4 optional,
integer f5 optional integer f5 optional
} }
testcase TC_Sem_060202_SetTypeValues_005() runs on GeneralComp { const S v_assigned := { f1 := 1, f2:= 2 } with { optional "implicit omit" }
var S v_assigned := { 1, -, 2 } with { optional "implicit omit" } testcase TC_Sem_060202_SetTypeValues_005() runs on GeneralComp {
template S m_check := { 1, omit, 2, omit, omit }
template S m_check := { f1:= 1, f2:= omit, f3:= 2, f4:= omit, f5:= omit }
if (match(v_assigned,m_check)) { if (match(v_assigned,m_check)) { //cannot match undefined components of v_assigned
setverdict(pass); setverdict(fail, "somehow it matched?");
} }
else { else {
setverdict(fail); setverdict(pass, "cannot match: ", v_assigned, " with ", m_check);
} }
} }
control { control {
execute(TC_Sem_060202_SetTypeValues_005()); execute(TC_Sem_060202_SetTypeValues_005());
} }
} }
/*************************************************** /***************************************************
** @author STF470 ** @author STF470
** @version 0.0.1 ** @version 0.0.1
** @desc Test cases for clause 6.2 ** @desc Test cases for clause 6.2
** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled ** @purpose 1:6.2, Ensure that assignments with "implicit omit" attribute are correctly handled
** @verdict pass accept, ttcn3verdict:pass ** @verdict pass accept, ttcn3verdict:pass
***************************************************/ ***************************************************/
module Sem_060202_SetTypeValues_006 { module Sem_060202_SetTypeValues_006 {
type component GeneralComp { type component GeneralComp {
} }
type set S { type set S {
integer f1, integer f1,
integer f2 optional, integer f2 optional,
integer f3, integer f3,
integer f4 optional, integer f4 optional,
integer f5 optional integer f5 optional
} }
const S v_assigned := { f1 := 1, f2 := -, f3 := 2 } with { optional "implicit omit" }
const S c_assigned := { 1, -, 2 } with { optional "implicit omit" } testcase TC_Sem_060202_SetTypeValues_006() runs on GeneralComp {
testcase TC_Sem_060202_SetTypeValues_006() runs on GeneralComp {
template S m_check := { 1, omit, 2, omit, omit } template S m_check := { f1 := 1, f2 := omit, f3 := 2, f4 := omit, f5 := omit }
if (match(c_assigned,m_check)) { if (match(v_assigned,m_check)) {
setverdict(pass); setverdict(pass);
} }
else { else {
setverdict(fail); setverdict(fail);
} }
} }
control { control {
execute(TC_Sem_060202_SetTypeValues_006()); execute(TC_Sem_060202_SetTypeValues_006());
} }
} }
...@@ -7,35 +7,35 @@ ...@@ -7,35 +7,35 @@
***************************************************/ ***************************************************/
module Sem_060202_SetTypeValues_007 { module Sem_060202_SetTypeValues_007 {
type component GeneralComp { type component GeneralComp {
} }
type record S { type record S {
integer f1, integer f1,
integer f2 optional, integer f2 optional,
integer f3, integer f3,
integer f4 optional, integer f4 optional,
integer f5 optional integer f5 optional
} }
testcase TC_Sem_060202_SetTypeValues_007() runs on GeneralComp {
var S v_assigned := { 1, 2, 3 } with { optional "implicit omit" } const S v_assigned := { f1 := 1, f2 := 2, f3 := 3 } with { optional "implicit omit" }
if ( match(v_assigned.f1,1) testcase TC_Sem_060202_SetTypeValues_007() runs on GeneralComp {
if ( match(v_assigned.f1,1)
and match(v_assigned.f3,3) and match(v_assigned.f3,3)
and not ispresent(v_assigned.f4) and not ispresent(v_assigned.f4)
and not ispresent(v_assigned.f5) ) { and not ispresent(v_assigned.f5) ) {
setverdict(pass); setverdict(pass);
} }
else { else {
setverdict(fail); setverdict(fail);
} }
} }
control { control {
execute(TC_Sem_060202_SetTypeValues_007()); execute(TC_Sem_060202_SetTypeValues_007());
} }
} }
...@@ -17,9 +17,7 @@ module Sem_060303_component_types_001 { ...@@ -17,9 +17,7 @@ module Sem_060303_component_types_001 {
type integer ConstrainedInteger(0..10); type integer ConstrainedInteger(0..10);
type component TestCaseComp { type component TestCaseComp extends FunctionComp{
const integer c_integer:=2;
const ConstrainedInteger c_constrained:=2;
} }
type component FunctionComp { type component FunctionComp {
......
...@@ -17,8 +17,7 @@ module Sem_060303_component_types_002 { ...@@ -17,8 +17,7 @@ module Sem_060303_component_types_002 {
type integer ConstrainedInteger(0..10); type integer ConstrainedInteger(0..10);
type component TestCaseComp { type component TestCaseComp extends FunctionComp{
const integer c_integer:=2;
const ConstrainedInteger c_constrained:=2; const ConstrainedInteger c_constrained:=2;
} }
......
/*****************************************************************
** @author STF 470
** @version 0.0.1
** @purpose 1:8.2.3.1, Verify that identifiers of parameter types are not imported together with external functions
** @verdict pass reject
*****************************************************************/
#include "NegSem_08020301_GeneralFormatOfImport_031_import.hh"
namespace NegSem__08020301__GeneralFormatOfImport__032__import
{
void f__test()
{
MyType p = 1;
return p;
}
}
// This C++ header file was generated by the TTCN-3 compiler
// of the TTCN-3 Test Executor version CRL 113 200/5 R4A
// for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Jan 18 12:27:53 2016
// Copyright (c) 2000-2015 Ericsson Telecom AB
// Do not edit this file unless you know what you are doing.
#ifndef Sem__0902__Communication__ports__001_HH
#define Sem__0902__Communication__ports__001_HH
#ifdef TITAN_RUNTIME_2
#error Generated code does not match with used runtime.\
Code was generated without -R option but -DTITAN_RUNTIME_2 was used.
#endif
/* Header file includes */
#include <TTCN3.hh>
#if TTCN3_VERSION != 50400
#error Version mismatch detected.\
Please check the version of the TTCN-3 compiler and the base library.
#endif
#ifndef LINUX
#error This file should be compiled on LINUX
#endif
#undef Sem__0902__Communication__ports__001_HH
#endif
namespace Sem__0902__Communication__ports__001 {
/* Forward declarations of classes */
class loopbackPort;
class IntegerOutputPortType_BASE;
class IntegerOutputPortType;
} /* end of namespace */
#ifndef Sem__0902__Communication__ports__001_HH
#define Sem__0902__Communication__ports__001_HH
namespace Sem__0902__Communication__ports__001 {
/* Type definitions */
typedef COMPONENT GeneralComp;
typedef COMPONENT_template GeneralComp_template;
typedef COMPONENT MyTestSystemInterface;
typedef COMPONENT_template MyTestSystemInterface_template;
/* Class definitions */
class loopbackPort : public PORT {
enum msg_selection { MESSAGE_0 };
struct msg_queue_item : public msg_queue_item_base {
msg_selection item_selection;
union {
INTEGER *message_0;
};
component sender_component;
};
void remove_msg_queue_head();
protected:
void clear_queue();
public:
loopbackPort(const char *par_port_name = NULL);
~loopbackPort();
void send(const INTEGER& send_par, const COMPONENT& destination_component);
void send(const INTEGER& send_par);
void send(const INTEGER_template& send_par, const COMPONENT& destination_component);
void send(const INTEGER_template& send_par);
alt_status receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status check_receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status trigger(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status receive(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status check_receive(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status trigger(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
private:
void incoming_message(const INTEGER& incoming_par, component sender_component);
protected:
boolean process_message(const char *message_type, Text_Buf& incoming_buf, component sender_component, OCTETSTRING& slider);
};
class IntegerOutputPortType_BASE : public PORT {
enum msg_selection { MESSAGE_0 };
struct msg_queue_item : public msg_queue_item_base {
msg_selection item_selection;
union {
INTEGER *message_0;
};
component sender_component;
};
void remove_msg_queue_head();
protected:
void clear_queue();
public:
IntegerOutputPortType_BASE(const char *par_port_name);
~IntegerOutputPortType_BASE();
void send(const INTEGER& send_par, const COMPONENT& destination_component);
void send(const INTEGER& send_par);
void send(const INTEGER_template& send_par, const COMPONENT& destination_component);
void send(const INTEGER_template& send_par);
protected:
virtual void outgoing_send(const INTEGER& send_par) = 0;
public:
alt_status receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status check_receive(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status trigger(const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status receive(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status check_receive(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
alt_status trigger(const INTEGER_template& value_template, INTEGER *value_ptr, const COMPONENT_template& sender_template, COMPONENT *sender_ptr);
private:
void incoming_message(const INTEGER& incoming_par, component sender_component);
protected:
inline void incoming_message(const INTEGER& incoming_par) { incoming_message(incoming_par, SYSTEM_COMPREF); }
boolean process_message(const char *message_type, Text_Buf& incoming_buf, component sender_component, OCTETSTRING& slider);
};
/* Function prototypes */
extern verdicttype testcase_TC__Sem__0902__Communication__ports__001(boolean has_timer, double timer_value);
/* Global variable declarations */
extern const TTCN_Typedescriptor_t& GeneralComp_descr_;
extern IntegerOutputPortType GeneralComp_component_MycomportA;
extern const TTCN_Typedescriptor_t& MyTestSystemInterface_descr_;
extern loopbackPort MyTestSystemInterface_component_messagePort;
extern TTCN_Module module_object;
} /* end of namespace */
/* Test port header files */
#include "IntegerOutputPortType.hh"
#endif
...@@ -18,14 +18,11 @@ module Sem_0902_Communication_ports_001{ ...@@ -18,14 +18,11 @@ module Sem_0902_Communication_ports_001{
type port loopbackPort message { type port loopbackPort message {
inout integer inout integer
} with {extension "internal"} }
type port IntegerOutputPortType message {
inout integer
} // with {extension "internal"}
type component GeneralComp type component GeneralComp
{ {
port IntegerOutputPortType MycomportA port loopbackPort MycomportA
} }
type component MyTestSystemInterface type component MyTestSystemInterface
...@@ -38,7 +35,6 @@ module Sem_0902_Communication_ports_001{ ...@@ -38,7 +35,6 @@ module Sem_0902_Communication_ports_001{
// establishing the port connections // establishing the port connections
map(mtc:MycomportA, system:messagePort); map(mtc:MycomportA, system:messagePort);
MycomportA.send(2); //can send also in-line template MycomportA.send(2); //can send also in-line template
alt { alt {
......
...@@ -16,24 +16,20 @@ ...@@ -16,24 +16,20 @@
//Two ports are mapped to two system interface //Two ports are mapped to two system interface
module Sem_0902_Communication_ports_002{ module Sem_0902_Communication_ports_002{
type port loopbackPort message { type port loopbackPort1 message {
inout integer inout integer
} }
type port MyMessagePortType message {
inout integer
}
type component GeneralComp type component GeneralComp
{ {
var integer v_received1:=0; var integer v_received1:=0;
var integer v_received2:=0; var integer v_received2:=0;
port MyMessagePortType myPortA,myPortB port loopbackPort1 myPortA,myPortB
} }
type component MyTestSystemInterface type component MyTestSystemInterface
{ {
port loopbackPort messagePortA,messagePortB port loopbackPort1 messagePortA,messagePortB
} }
// MyTestSystemInterface is the test system interface // MyTestSystemInterface is the test system interface
...@@ -42,7 +38,6 @@ module Sem_0902_Communication_ports_002{ ...@@ -42,7 +38,6 @@ module Sem_0902_Communication_ports_002{
map(mtc:myPortA, system:messagePortA); map(mtc:myPortA, system:messagePortA);
map(mtc:myPortB, system:messagePortB); map(mtc:myPortB, system:messagePortB);
myPortA.send(2); //can send also in-line template myPortA.send(2); //can send also in-line template
myPortB.send(3); myPortB.send(3);
......
// This Test Port skeleton source file was generated by the // This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R4A // TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R4D
// for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Jan 18 12:27:53 2016 // for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Apr 18 14:18:01 2016
// Copyright (c) 2000-2015 Ericsson Telecom AB // Copyright (c) 2000-2015 Ericsson Telecom AB
// You may modify this file. Complete the body of empty functions and // You may modify this file. Complete the body of empty functions and
// add your member functions here. // add your member functions here.
#include "IntegerOutputPortType.hh" #include "loopbackPort.hh"
namespace Sem__0902__Communication__ports__001 { namespace Sem__0902__Communication__ports__001 {
IntegerOutputPortType::IntegerOutputPortType(const char *par_port_name) loopbackPort::loopbackPort(const char *par_port_name)
: IntegerOutputPortType_BASE(par_port_name) : loopbackPort_BASE(par_port_name)
{ {
} }
IntegerOutputPortType::~IntegerOutputPortType() loopbackPort::~loopbackPort()
{ {
} }
void IntegerOutputPortType::set_parameter(const char * /*parameter_name*/, void loopbackPort::set_parameter(const char * /*parameter_name*/,
const char * /*parameter_value*/) const char * /*parameter_value*/)
{ {
} }
/*void IntegerOutputPortType::Handle_Fd_Event(int fd, boolean is_readable, /*void loopbackPort::Handle_Fd_Event(int fd, boolean is_readable,
boolean is_writable, boolean is_error) {}*/ boolean is_writable, boolean is_error) {}*/
void IntegerOutputPortType::Handle_Fd_Event_Error(int /*fd*/) void loopbackPort::Handle_Fd_Event_Error(int /*fd*/)
{ {
} }
void IntegerOutputPortType::Handle_Fd_Event_Writable(int /*fd*/) void loopbackPort::Handle_Fd_Event_Writable(int /*fd*/)
{ {
} }
void IntegerOutputPortType::Handle_Fd_Event_Readable(int /*fd*/) void loopbackPort::Handle_Fd_Event_Readable(int /*fd*/)
{ {
} }
/*void IntegerOutputPortType::Handle_Timeout(double time_since_last_call) {}*/ /*void loopbackPort::Handle_Timeout(double time_since_last_call) {}*/
void IntegerOutputPortType::user_map(const char * /*system_port*/) void loopbackPort::user_map(const char * /*system_port*/)
{ {
} }
void IntegerOutputPortType::user_unmap(const char * /*system_port*/) void loopbackPort::user_unmap(const char * /*system_port*/)
{ {
} }
void IntegerOutputPortType::user_start() void loopbackPort::user_start()
{ {
} }
void IntegerOutputPortType::user_stop() void loopbackPort::user_stop()
{ {
} }
void IntegerOutputPortType::outgoing_send(const INTEGER& /*send_par*/) void loopbackPort::outgoing_send(const INTEGER& send_par)
{ {
incoming_message(send_par);
} }
} /* end of namespace */ } /* end of namespace */
......
// This Test Port skeleton header file was generated by the // This Test Port skeleton header file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R4A // TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R4D
// for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Jan 18 12:27:53 2016 // for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Apr 18 14:18:01 2016
// Copyright (c) 2000-2015 Ericsson Telecom AB // Copyright (c) 2000-2015 Ericsson Telecom AB
// You may modify this file. Add your attributes and prototypes of your // You may modify this file. Add your attributes and prototypes of your
// member functions here. // member functions here.
#ifndef IntegerOutputPortType_HH #ifndef loopbackPort_HH
#define IntegerOutputPortType_HH #define loopbackPort_HH
#include "Sem_0902_Communication_ports_001.hh" #include "Sem_0902_Communication_ports_001.hh"
namespace Sem__0902__Communication__ports__001 { namespace Sem__0902__Communication__ports__001 {
class IntegerOutputPortType : public IntegerOutputPortType_BASE { class loopbackPort : public loopbackPort_BASE {
public: public:
IntegerOutputPortType(const char *par_port_name = NULL); loopbackPort(const char *par_port_name = NULL);
~IntegerOutputPortType(); ~loopbackPort();
void set_parameter(const char *parameter_name, void set_parameter(const char *parameter_name,
const char *parameter_value); const char *parameter_value);
......
// This Test Port skeleton source file was generated by the
// TTCN-3 Compiler of the TTCN-3 Test Executor version CRL 113 200/5 R4D
// for eadrkir (eadrkir@eadrkir-VirtualBox) on Mon Apr 18 14:18:01 2016
// Copyright (c) 2000-2015 Ericsson Telecom AB
// You may modify this file. Complete the body of empty functions and
// add your member functions here.
#include "loopbackPort1.hh"
namespace Sem__0902__Communication__ports__002 {
loopbackPort1::loopbackPort1(const char *par_port_name)
: loopbackPort1_BASE(par_port_name)
{
}
loopbackPort1::~loopbackPort1()
{
}
void loopbackPort1::set_parameter(const char * /*parameter_name*/,
const char * /*parameter_value*/)
{
}
/*void loopbackPort1::Handle_Fd_Event(int fd, boolean is_readable,
boolean is_writable, boolean is_error) {}*/
void loopbackPort1::Handle_Fd_Event_Error(int /*fd*/)
{
}
void loopbackPort1::Handle_Fd_Event_Writable(int /*fd*/)
{
}
void loopbackPort1::Handle_Fd_Event_Readable(int /*fd*/)
{
}
/*void loopbackPort1::Handle_Timeout(double time_since_last_call) {}*/
void loopbackPort1::user_map(const char * /*system_port*/)
{
}
void loopbackPort1::user_unmap(const char * /*system_port*/)
{
}
void loopbackPort1::user_start()
{
}
void loopbackPort1::user_stop()
{
}
void loopbackPort1::outgoing_send(const INTEGER& send_par)
{
incoming_message(send_par);
}
} /* end of namespace */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment