summaryrefslogtreecommitdiff
path: root/test/network_tests/malicious_data_tests/malicious_data_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/malicious_data_tests/malicious_data_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/malicious_data_tests/malicious_data_test_globals.hpp')
-rw-r--r--test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp b/test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp
new file mode 100644
index 0000000..de14d5e
--- /dev/null
+++ b/test/network_tests/malicious_data_tests/malicious_data_test_globals.hpp
@@ -0,0 +1,33 @@
+// Copyright (C) 2014-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 MALICIOUS_DATA_TEST_GLOBALS_HPP_
+#define MALICIOUS_DATA_TEST_GLOBALS_HPP_
+
+namespace malicious_data_test {
+
+struct service_info {
+ vsomeip::service_t service_id;
+ vsomeip::instance_t instance_id;
+ vsomeip::method_t method_id;
+ vsomeip::event_t event_id;
+ vsomeip::eventgroup_t eventgroup_id;
+ vsomeip::method_t shutdown_method_id;
+ vsomeip::method_t notify_method_id;
+};
+
+struct service_info service = { 0x3344, 0x1, 0x1111, 0x8002, 0x1, 0x1404, 0x4242 };
+
+enum test_mode_e {
+ MALICIOUS_EVENTS,
+ PROTOCOL_VERSION,
+ MESSAGE_TYPE,
+ RETURN_CODE,
+ WRONG_HEADER_FIELDS_UDP
+};
+
+}
+
+#endif /* MALICIOUS_DATA_TEST_GLOBALS_HPP_ */