diff options
Diffstat (limited to 'test/network_tests/someip_test_globals.hpp')
-rw-r--r-- | test/network_tests/someip_test_globals.hpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/network_tests/someip_test_globals.hpp b/test/network_tests/someip_test_globals.hpp new file mode 100644 index 0000000..4380cd3 --- /dev/null +++ b/test/network_tests/someip_test_globals.hpp @@ -0,0 +1,43 @@ +// Copyright (C) 2015-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#ifndef SOMEIP_TEST_GLOBALS_HPP_ +#define SOMEIP_TEST_GLOBALS_HPP_ + +#include <vsomeip/vsomeip.hpp> +#include <vsomeip/internal/logger.hpp> + +namespace vsomeip_test +{ + +// Service +constexpr vsomeip::service_t TEST_SERVICE_SERVICE_ID = 0x1234; +constexpr vsomeip::instance_t TEST_SERVICE_INSTANCE_ID = 0x5678; +constexpr vsomeip::method_t TEST_SERVICE_METHOD_ID = 0x8421; +constexpr vsomeip::method_t TEST_SERVICE_METHOD_ID_SHUTDOWN = 0x7777; +constexpr vsomeip::client_t TEST_SERVICE_CLIENT_ID = 0x1277; + +// Client local +constexpr vsomeip::client_t TEST_CLIENT_CLIENT_ID = 0x1255; + +// Client external +constexpr vsomeip::client_t TEST_CLIENT_EXTERNAL_CLIENT_ID = 0x1644; + + +constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND = 10; +constexpr vsomeip::session_t TEST_INITIAL_SESSION_ID = 0x1; + +constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_PAYLOAD_TESTS = 1000; +constexpr vsomeip::byte_t PAYLOAD_TEST_DATA = 0xDD; +constexpr std::uint32_t MAX_PAYLOADSIZE = 1024*128; +// TR_SOMEIP_00061 +constexpr std::uint32_t MAX_PAYLOADSIZE_UDP = 1400; + +constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_ROUTING_RESTART_TESTS = 32; + +constexpr std::uint32_t NUMBER_OF_MESSAGES_TO_SEND_SECURITY_TESTS = 32; +} + +#endif /* SOMEIP_TEST_GLOBALS_HPP_ */ |