| // This C++ source file was generated by the TTCN-3 compiler |
| // of the TTCN-3 Test Executor version CRL 113 200/6 R6A |
| // for Lénárd Nagy (elnrnag@elx78355y6x) on Thu Oct 24 10:29:40 2019 |
| |
| // Copyright (c) 2000-2019 Ericsson Telecom AB |
| |
| // Do not edit this file unless you know what you are doing. |
| |
| /* Including header files */ |
| |
| #include "UnifiedDiagnosticServicestest.hh" |
| |
| namespace UnifiedDiagnosticServicestest { |
| |
| /* Prototypes of static functions */ |
| |
| static void pre_init_module(); |
| static void post_init_module(); |
| static boolean init_comp_type(const char *component_type, boolean init_base_comps); |
| |
| /* Literal string constants */ |
| |
| static const unsigned char os_4_octets[] = { 0 }, |
| os_2_octets[] = { 1 }, |
| os_3_octets[] = { 1, 35, 69, 103 }, |
| os_0_octets[] = { 16, 32 }, |
| os_5_octets[] = { 18, 52, 86 }, |
| os_1_octets[] = { 48, 64 }; |
| static const OCTETSTRING os_4(1, os_4_octets), |
| os_2(1, os_2_octets), |
| os_3(4, os_3_octets), |
| os_0(2, os_0_octets), |
| os_5(3, os_5_octets), |
| os_1(2, os_1_octets); |
| static const unsigned char module_checksum[] = { 0x71, 0x2b, 0xd6, 0xa0, 0xf1, 0x8d, 0xcc, 0x94, 0x27, 0x93, 0xd3, 0x8e, 0x7f, 0xf9, 0x77, 0x8f }; |
| |
| /* Global variable definitions */ |
| |
| const TTCN_Typedescriptor_t& MTC__CT_descr_ = COMPONENT_descr_; |
| TTCN_Module module_object("UnifiedDiagnosticServicestest", __DATE__, __TIME__, module_checksum, pre_init_module, NULL, 0U, 4294967295U, 4294967295U, 4294967295U, NULL, 0LU, 0, post_init_module, NULL, NULL, NULL, init_comp_type, NULL, NULL, NULL); |
| |
| static const RuntimeVersionChecker ver_checker( current_runtime_version.requires_major_version_6, |
| current_runtime_version.requires_minor_version_6, |
| current_runtime_version.requires_patch_level_0, current_runtime_version.requires_runtime_1); |
| |
| /* Bodies of functions, altsteps and testcases */ |
| |
| verdicttype testcase_tc__encdec__DiagnosticSessionControlRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 13, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_DiagnosticSessionControlRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_DiagnosticSessionControlRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(16); |
| #line 16 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage; |
| { |
| UnifiedDiagnosticServices::DiagnosticSessionRequestType_template tmp_0; |
| tmp_0.extendedDiagnosticSession() = UnifiedDiagnosticServices__Template::t__ExtendedDiagnosticSessionRequest; |
| t__UDSRequestMessage = UnifiedDiagnosticServices__Template::t__diagnosticSessionControlRequestSID(UnifiedDiagnosticServices::SuppressPosRspMsgIndicationBitType::suppresssPos, tmp_0); |
| } |
| current_location.update_lineno(20); |
| #line 20 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(21); |
| #line 21 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_DiagnosticSessionControlRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__DiagnosticSessionControlResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 25, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_DiagnosticSessionControlResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_DiagnosticSessionControlResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(27); |
| #line 27 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage; |
| { |
| UnifiedDiagnosticServices::DiagnosticSessionResponseType_template tmp_1; |
| tmp_1.extendedDiagnosticSession() = UnifiedDiagnosticServices__Template::t__ExtendedDiagnosticSessionResponse(os_0, os_1); |
| t__UDSResponseMessage = UnifiedDiagnosticServices__Template::t__diagnosticSessionControlResponseSID(tmp_1); |
| } |
| current_location.update_lineno(31); |
| #line 31 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(32); |
| #line 32 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_DiagnosticSessionControlResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__ECUResetRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 37, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_ECUResetRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_ECUResetRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(40); |
| #line 40 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage; |
| { |
| UnifiedDiagnosticServices::ECUResetRequestType_template tmp_2; |
| tmp_2.hardReset() = UnifiedDiagnosticServices__Template::t__HardResetRequest; |
| t__UDSRequestMessage = UnifiedDiagnosticServices__Template::t__ecuResetRequestTypeSID(UnifiedDiagnosticServices::SuppressPosRspMsgIndicationBitType::suppresssPos, tmp_2); |
| } |
| current_location.update_lineno(43); |
| #line 43 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(44); |
| #line 44 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_ECUResetRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__ECUResetResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 49, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_ECUResetResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_ECUResetResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(52); |
| #line 52 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage; |
| { |
| UnifiedDiagnosticServices::ECUResetResponseType_template tmp_3; |
| tmp_3.enableRapidPowerShutDown() = UnifiedDiagnosticServices__Template::t__EnableRapidPowerShutDownResponse(os_2); |
| t__UDSResponseMessage = UnifiedDiagnosticServices__Template::t__ecuResetResponseTypeSID(tmp_3); |
| } |
| current_location.update_lineno(55); |
| #line 55 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(56); |
| #line 56 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_ECUResetResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__SecurityAccessRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 62, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_SecurityAccessRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_SecurityAccessRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(65); |
| #line 65 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage; |
| { |
| UnifiedDiagnosticServices::SecurityAccessRequestType_template tmp_4; |
| tmp_4.requestSeed1() = UnifiedDiagnosticServices__Template::t__requestSeedRequest1(os_3); |
| t__UDSRequestMessage = UnifiedDiagnosticServices__Template::t__securityAccessRequest(UnifiedDiagnosticServices::SuppressPosRspMsgIndicationBitType::suppresssPos, tmp_4); |
| } |
| current_location.update_lineno(68); |
| #line 68 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(69); |
| #line 69 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_SecurityAccessRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__SecurityAccessResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 74, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_SecurityAccessResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_SecurityAccessResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(77); |
| #line 77 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage; |
| { |
| UnifiedDiagnosticServices::SecurityAccessResponseType_template tmp_5; |
| tmp_5.requestSeed0() = UnifiedDiagnosticServices__Template::t__requestSeedResponse0(os_4); |
| t__UDSResponseMessage = UnifiedDiagnosticServices__Template::t__SecurityAccessResponseSID(tmp_5); |
| } |
| current_location.update_lineno(80); |
| #line 80 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(81); |
| #line 81 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_SecurityAccessResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__CommunicationControlRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 85, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_CommunicationControlRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_CommunicationControlRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(88); |
| #line 88 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage(UnifiedDiagnosticServices__Template::t__communicationControlRequest(UnifiedDiagnosticServices__Template::t__DisableRxAndTxRequest(UnifiedDiagnosticServices::SuppressPosRspMsgIndicationBitType::suppresssPos, UnifiedDiagnosticServices__Template::t__communicationType(UnifiedDiagnosticServices::e__DisableEnable::DisableEnableSpecificSubnetIdentifiedBySubnetNumber7, UnifiedDiagnosticServices::e__CommunicationMessages::normalMessages)))); |
| current_location.update_lineno(92); |
| #line 92 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(93); |
| #line 93 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_CommunicationControlRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__CommunicationControlResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 98, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_CommunicationControlResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_CommunicationControlResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(101); |
| #line 101 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage(UnifiedDiagnosticServices__Template::t__communicationControlResponse(UnifiedDiagnosticServices::e__ControlType_template(UnifiedDiagnosticServices::e__ControlType::DisableRxAndEnableTx))); |
| current_location.update_lineno(104); |
| #line 104 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(105); |
| #line 105 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_CommunicationControlResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__TesterPresentRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 109, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_TesterPresentRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_TesterPresentRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(112); |
| #line 112 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage(UnifiedDiagnosticServices__Template::t__testerPresentRequest(UnifiedDiagnosticServices::SuppressPosRspMsgIndicationBitType::suppresssPos)); |
| current_location.update_lineno(114); |
| #line 114 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(115); |
| #line 115 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_TesterPresentRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__ReadDataByIdentifierRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 120, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_ReadDataByIdentifierRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_ReadDataByIdentifierRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(123); |
| #line 123 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage; |
| { |
| UnifiedDiagnosticServices::ReadDataByIdentifierRequest_template tmp_6; |
| tmp_6.readDataByIdentifier1() = UnifiedDiagnosticServices__Template::t__ReadDataByIdentifierRequest1; |
| t__UDSRequestMessage = UnifiedDiagnosticServices__Template::t__ReadDataByIdentifierRequestSID(tmp_6); |
| } |
| current_location.update_lineno(126); |
| #line 126 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(127); |
| #line 127 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_ReadDataByIdentifierRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__ReadDataByIdentifierResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 132, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_ReadDataByIdentifierResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_ReadDataByIdentifierResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(135); |
| #line 135 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage; |
| { |
| UnifiedDiagnosticServices::ReadDataByIdentifierResponse_template tmp_7; |
| tmp_7.readDataByIdentifier1() = UnifiedDiagnosticServices__Template::t__ReadDataByIdentifierResponse1(os_3); |
| t__UDSResponseMessage = UnifiedDiagnosticServices__Template::t__ReadDataByIdentifierResponseSID(tmp_7); |
| } |
| current_location.update_lineno(138); |
| #line 138 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(139); |
| #line 139 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_ReadDataByIdentifierResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__WriteDataByIdentifierRequest(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 144, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_WriteDataByIdentifierRequest"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_WriteDataByIdentifierRequest", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(147); |
| #line 147 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__requests_template t__UDSRequestMessage; |
| { |
| UnifiedDiagnosticServices::WriteDataByIdentifierRequest_template tmp_8; |
| tmp_8.writeDataByIdentifier1() = UnifiedDiagnosticServices__Template::t__WriteDataByIdentifierRequest1(os_5); |
| t__UDSRequestMessage = UnifiedDiagnosticServices__Template::t__WriteDataByIdentifierRequestSID(tmp_8); |
| } |
| current_location.update_lineno(150); |
| #line 150 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(151); |
| #line 151 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__requests(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__requests(t__UDSRequestMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_WriteDataByIdentifierRequest was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__WriteDataByIdentifierResponse(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 157, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_WriteDataByIdentifierResponse"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_WriteDataByIdentifierResponse", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(160); |
| #line 160 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage; |
| { |
| UnifiedDiagnosticServices::WriteDataByIdentifierResponse_template tmp_9; |
| tmp_9.writeDataByIdentifier1() = UnifiedDiagnosticServices__Template::t__WriteDataByIdentifierResponse1; |
| t__UDSResponseMessage = UnifiedDiagnosticServices__Template::t__WriteDataByIdentifierResponseSID(tmp_9); |
| } |
| current_location.update_lineno(163); |
| #line 163 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(164); |
| #line 164 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_WriteDataByIdentifierResponse was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| verdicttype testcase_tc__encdec__NegativeResponseCode(boolean has_timer, double timer_value) |
| { |
| TTCN_Runtime::check_begin_testcase(has_timer, timer_value); |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 169, TTCN_Location::LOCATION_TESTCASE, "tc_encdec_NegativeResponseCode"); |
| try { |
| TTCN_Runtime::begin_testcase("UnifiedDiagnosticServicestest", "tc_encdec_NegativeResponseCode", "UnifiedDiagnosticServicestest", "MTC_CT", "UnifiedDiagnosticServicestest", "MTC_CT", has_timer, timer_value); |
| current_location.update_lineno(172); |
| #line 172 "UnifiedDiagnosticServicestest.ttcn" |
| UnifiedDiagnosticServices::TopLevelMessage__UDS__responses_template t__UDSResponseMessage(UnifiedDiagnosticServices__Template::t__NegativeResponseCodeSID(UnifiedDiagnosticServices::e__RequestSID::readDataByIdentifier, UnifiedDiagnosticServices::e__ResponseCode::voltageTooLow)); |
| current_location.update_lineno(175); |
| #line 175 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof()).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| current_location.update_lineno(176); |
| #line 176 "UnifiedDiagnosticServicestest.ttcn" |
| try { |
| TTCN_Logger::begin_event(TTCN_USER); |
| UnifiedDiagnosticServices::decode__TopLevelMessage__UDS__responses(UnifiedDiagnosticServices::encode__TopLevelMessage__UDS__responses(t__UDSResponseMessage.valueof())).log(); |
| TTCN_Logger::end_event(); |
| } catch (...) { |
| TTCN_Logger::finish_event(); |
| throw; |
| } |
| } catch (const TC_Error& tc_error) { |
| } catch (const TC_End& tc_end) { |
| TTCN_Logger::log_str(TTCN_FUNCTION, "Test case tc_encdec_NegativeResponseCode was stopped."); |
| } |
| return TTCN_Runtime::end_testcase(); |
| } |
| |
| |
| /* Bodies of static functions */ |
| |
| static void pre_init_module() |
| { |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "UnifiedDiagnosticServicestest"); |
| UnifiedDiagnosticServices__Template::module_object.pre_init_module(); |
| module_object.add_testcase_nonpard("tc_encdec_DiagnosticSessionControlRequest", testcase_tc__encdec__DiagnosticSessionControlRequest); |
| module_object.add_testcase_nonpard("tc_encdec_DiagnosticSessionControlResponse", testcase_tc__encdec__DiagnosticSessionControlResponse); |
| module_object.add_testcase_nonpard("tc_encdec_ECUResetRequest", testcase_tc__encdec__ECUResetRequest); |
| module_object.add_testcase_nonpard("tc_encdec_ECUResetResponse", testcase_tc__encdec__ECUResetResponse); |
| module_object.add_testcase_nonpard("tc_encdec_SecurityAccessRequest", testcase_tc__encdec__SecurityAccessRequest); |
| module_object.add_testcase_nonpard("tc_encdec_SecurityAccessResponse", testcase_tc__encdec__SecurityAccessResponse); |
| module_object.add_testcase_nonpard("tc_encdec_CommunicationControlRequest", testcase_tc__encdec__CommunicationControlRequest); |
| module_object.add_testcase_nonpard("tc_encdec_CommunicationControlResponse", testcase_tc__encdec__CommunicationControlResponse); |
| module_object.add_testcase_nonpard("tc_encdec_TesterPresentRequest", testcase_tc__encdec__TesterPresentRequest); |
| module_object.add_testcase_nonpard("tc_encdec_ReadDataByIdentifierRequest", testcase_tc__encdec__ReadDataByIdentifierRequest); |
| module_object.add_testcase_nonpard("tc_encdec_ReadDataByIdentifierResponse", testcase_tc__encdec__ReadDataByIdentifierResponse); |
| module_object.add_testcase_nonpard("tc_encdec_WriteDataByIdentifierRequest", testcase_tc__encdec__WriteDataByIdentifierRequest); |
| module_object.add_testcase_nonpard("tc_encdec_WriteDataByIdentifierResponse", testcase_tc__encdec__WriteDataByIdentifierResponse); |
| module_object.add_testcase_nonpard("tc_encdec_NegativeResponseCode", testcase_tc__encdec__NegativeResponseCode); |
| } |
| |
| static void post_init_module() |
| { |
| TTCN_Location current_location("UnifiedDiagnosticServicestest.ttcn", 0, TTCN_Location::LOCATION_UNKNOWN, "UnifiedDiagnosticServicestest"); |
| UnifiedDiagnosticServices__Template::module_object.post_init_module(); |
| } |
| |
| static boolean init_comp_type(const char *component_type, boolean init_base_comps) |
| { |
| (void)init_base_comps; |
| if (!strcmp(component_type, "MTC_CT")) { |
| return TRUE; |
| } else return FALSE; |
| } |
| |
| |
| } /* end of namespace */ |