• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 SOMEIP_TP_TEST_GLOBALS_HPP_
7 #define SOMEIP_TP_TEST_GLOBALS_HPP_
8 
9 #include <vsomeip/primitive_types.hpp>
10 
11 namespace someip_tp_test {
12 
13 struct service_info {
14     vsomeip::service_t service_id;
15     vsomeip::instance_t instance_id;
16     vsomeip::method_t method_id;
17     vsomeip::event_t event_id;
18     vsomeip::eventgroup_t eventgroup_id;
19     vsomeip::method_t shutdown_method_id;
20     vsomeip::method_t notify_method_id;
21 };
22 
23 struct service_info service = { 0x4545, 0x1, 0x4545, 0x8001, 0x1, 0x4501, 0x4502 };
24 struct service_info service_slave = { 0x6767, 0x1, 0x6767, 0x8001, 0x1, 0x6701, 0x6702 };
25 
26 enum test_mode_e {
27     IN_SEQUENCE,
28     MIXED,
29     INCOMPLETE,
30     DUPLICATE,
31     OVERLAP,
32     OVERLAP_FRONT_BACK
33 };
34 
35 const std::uint32_t number_of_fragments = 6;
36 const std::uint32_t max_segment_size = 1392;
37 
38 }
39 
40 #endif /* SOMEIP_TP_TEST_GLOBALS_HPP_ */
41