summaryrefslogtreecommitdiff
path: root/test/client_id_tests/client_id_test_globals.hpp
blob: 52dd0697005cec30385d1e9b47b8c2b38682f555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_
#define CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_

namespace client_id_test {

struct service_info {
    vsomeip::service_t service_id;
    vsomeip::instance_t instance_id;
    vsomeip::method_t method_id;
};

static constexpr std::array<service_info, 7> service_infos = {{
        // placeholder to be consistent w/ client ids, service ids, app names
        { 0xFFFF, 0xFFFF, 0xFFFF },
        // node 1
        { 0x1000, 0x1, 0x1111 },
        { 0x2000, 0x1, 0x2222 },
        { 0x3000, 0x1, 0x3333 },
        // node 2
        { 0x4000, 0x1, 0x4444 },
        { 0x5000, 0x1, 0x5555 },
        { 0x6000, 0x1, 0x6666 }
}};

static constexpr int messages_to_send = 10;
}

#endif /* CLIENT_ID_TEST_CLIENT_ID_TEST_GLOBALS_HPP_ */