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 CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_ 7 #define CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_ 8 9 namespace client_id_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::client_t offering_client; 16 }; 17 18 static constexpr std::array<service_info, 7> service_infos = {{ 19 // placeholder to be consistent w/ client ids, service ids, app names 20 { 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF }, 21 // node 1 22 { 0x1000, 0x1, 0x1111, 0x1111 }, 23 { 0x2000, 0x1, 0x2222, 0x2222}, 24 { 0x3000, 0x1, 0x3333, 0x3333}, 25 // node 2 26 { 0x4000, 0x1, 0x4444, 0x4444 }, 27 { 0x5000, 0x1, 0x5555, 0x5555 }, 28 { 0x6000, 0x1, 0x6666, 0x6666 } 29 }}; 30 31 static constexpr int messages_to_send = 10; 32 } 33 34 #endif /* CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_ */ 35