summaryrefslogtreecommitdiff
path: root/test/network_tests/someip_test_globals.hpp
diff options
context:
space:
mode:
authorDiogo Pedrosa <48529452+DiogoPedrozza@users.noreply.github.com>2023-03-13 14:09:12 +0000
committerGitHub <noreply@github.com>2023-03-13 14:09:12 +0000
commit1b427801352b5dcfdc2277f6343166c01afe97d6 (patch)
treed4e984dd100f3257ce784c9e30aefb6e60a93ab5 /test/network_tests/someip_test_globals.hpp
parentfc73f40fa1501dc53210c63cb7c0d7623d106370 (diff)
parent826ebb8d352245a36ecaec32b6af61e7abf4696e (diff)
downloadvSomeIP-1b427801352b5dcfdc2277f6343166c01afe97d6.tar.gz
Merge pull request #416 from COVESA/update_3.3.03.3.0
vsomeip 3.3.0
Diffstat (limited to 'test/network_tests/someip_test_globals.hpp')
-rw-r--r--test/network_tests/someip_test_globals.hpp43
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_ */