1 // Copyright (C) 2014-2017 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 SUBSCRIBE_NOTIFY_TEST_GLOBALS_HPP_ 7 #define SUBSCRIBE_NOTIFY_TEST_GLOBALS_HPP_ 8 9 namespace initial_event_test { 10 11 struct service_info { 12 vsomeip::service_t service_id; 13 vsomeip::instance_t instance_id; 14 vsomeip::method_t method_id; 15 vsomeip::event_t event_id; 16 vsomeip::eventgroup_t eventgroup_id; 17 }; 18 19 static constexpr std::array<service_info, 7> service_infos = {{ 20 // placeholder to be consistent w/ client ids, service ids, app names 21 { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }, 22 // node 1 23 { 0x1111, 0x1, 0x1111, 0x1111, 0x1000 }, 24 { 0x2222, 0x1, 0x2222, 0x2222, 0x2000 }, 25 { 0x3333, 0x1, 0x3333, 0x3333, 0x3000 }, 26 // node 2 27 { 0x4444, 0x1, 0x4444, 0x4444, 0x4000 }, 28 { 0x5555, 0x1, 0x5555, 0x5555, 0x5000 }, 29 { 0x6666, 0x1, 0x6666, 0x6666, 0x6000 } 30 }}; 31 32 static constexpr std::array<service_info, 7> service_infos_same_service_id = {{ 33 // placeholder to be consistent w/ client ids, service ids, app names 34 { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }, 35 // node 1 36 { 0x1111, 0x1, 0x1111, 0x1111, 0x1000 }, 37 { 0x1111, 0x2, 0x2222, 0x2222, 0x2000 }, 38 { 0x1111, 0x3, 0x3333, 0x3333, 0x3000 }, 39 // node 2 40 { 0x2222, 0x1, 0x4444, 0x4444, 0x4000 }, 41 { 0x2222, 0x2, 0x5555, 0x5555, 0x5000 }, 42 { 0x2222, 0x3, 0x6666, 0x6666, 0x6000 } 43 }}; 44 45 static constexpr service_info stop_service_master = { 0x8888, 0x1, 0x8888, 0x0, 0x0 }; 46 static constexpr service_info stop_service_slave = { 0x9999, 0x1, 0x9999, 0x0, 0x0 }; 47 48 static constexpr int notifications_to_send = 1; 49 } 50 51 #endif /* SUBSCRIBE_NOTIFY_TEST_GLOBALS_HPP_ */ 52