1 // Copyright (C) 2015-2019 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) 2 // This Source Code Form is subject to the terms of the Mozilla Public 3 // License, v. 2.0. If a copy of the MPL was not distributed with this 4 // file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 6 #ifndef NPDU_TESTS_NPDU_TEST_GLOBALS_HPP_ 7 #define NPDU_TESTS_NPDU_TEST_GLOBALS_HPP_ 8 9 namespace npdu_test { 10 11 // Routing manager daemon 12 constexpr vsomeip::client_t RMD_CLIENT_ID_CLIENT_SIDE = 0x6666; 13 constexpr vsomeip::service_t RMD_SERVICE_ID_CLIENT_SIDE = 0x6666; 14 15 constexpr vsomeip::client_t RMD_CLIENT_ID_SERVICE_SIDE = 0x6667; 16 constexpr vsomeip::service_t RMD_SERVICE_ID_SERVICE_SIDE = 0x6667; 17 18 constexpr vsomeip::instance_t RMD_INSTANCE_ID = 0x6666; 19 constexpr vsomeip::method_t RMD_SHUTDOWN_METHOD_ID = 0x6666; 20 21 22 23 constexpr vsomeip::method_t NPDU_SERVICE_SHUTDOWNMETHOD_ID = 0x7777; 24 25 constexpr std::array<vsomeip::service_t, 4> service_ids = 26 { 0x1000, 0x2000, 0x3000, 0x4000 }; 27 constexpr std::array<vsomeip::instance_t, 4> instance_ids = 28 { service_ids[0] >> 12, 29 service_ids[1] >> 12, 30 service_ids[2] >> 12, 31 service_ids[3] >> 12 }; 32 constexpr std::array<std::array<vsomeip::method_t, 4>, 4> method_ids = {{ 33 { service_ids[0]+1, service_ids[0]+2 ,service_ids[0]+3 ,service_ids[0]+4 }, 34 { service_ids[1]+1, service_ids[1]+2 ,service_ids[1]+3 ,service_ids[1]+4 }, 35 { service_ids[2]+1, service_ids[2]+2 ,service_ids[2]+3 ,service_ids[2]+4 }, 36 { service_ids[3]+1, service_ids[3]+2 ,service_ids[3]+3 ,service_ids[3]+4 } 37 }}; 38 39 constexpr std::array<vsomeip::client_t, 4> client_ids_clients = 40 { 0x1111, 0x2222, 0x3333, 0x4444 }; 41 42 constexpr std::array<vsomeip::client_t, 4> client_ids_services = service_ids; 43 44 } 45 #endif /* NPDU_TESTS_NPDU_TEST_GLOBALS_HPP_ */ 46