1 // Copyright (C) 2015-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 SOMEIP_TEST_GLOBALS_HPP_
7 #define SOMEIP_TEST_GLOBALS_HPP_
8 
9 #include <vsomeip/vsomeip.hpp>
10 #include <vsomeip/internal/logger.hpp>
11 
12 namespace vsomeip_test
13 {
14 
15 // Service
16 constexpr vsomeip::service_t TEST_SERVICE_SERVICE_ID = 0x1234;
17 constexpr vsomeip::instance_t TEST_SERVICE_INSTANCE_ID = 0x5678;
18 constexpr vsomeip::method_t TEST_SERVICE_METHOD_ID = 0x8421;
19 constexpr vsomeip::method_t TEST_SERVICE_METHOD_ID_SHUTDOWN = 0x7777;
20 constexpr vsomeip::client_t TEST_SERVICE_CLIENT_ID = 0x1277;
21 
22 // Client local
23 constexpr vsomeip::client_t TEST_CLIENT_CLIENT_ID = 0x1255;
24 
25 // Client external
26 constexpr vsomeip::client_t TEST_CLIENT_EXTERNAL_CLIENT_ID = 0x1644;
27 
28 
29 constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND = 10;
30 constexpr vsomeip::session_t TEST_INITIAL_SESSION_ID = 0x1;
31 
32 constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_PAYLOAD_TESTS = 1000;
33 constexpr vsomeip::byte_t PAYLOAD_TEST_DATA = 0xDD;
34 constexpr std::uint32_t MAX_PAYLOADSIZE = 1024*128;
35 // TR_SOMEIP_00061
36 constexpr std::uint32_t MAX_PAYLOADSIZE_UDP = 1400;
37 
38 constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_ROUTING_RESTART_TESTS = 32;
39 
40 constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_SECURITY_TESTS = 32;
41 }
42 
43 #endif /* SOMEIP_TEST_GLOBALS_HPP_ */
44