blob: 29f99f751258be3f44993ad77ecc4c1404e5e8c7 [file] [log] [blame]
Julian Halld4071382021-07-07 16:45:53 +01001/*
2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef SERVICE_UNDER_TEST_H
8#define SERVICE_UNDER_TEST_H
9
Julian Hall04460402021-07-08 17:40:57 +010010#include <rpc/common/logging/logging_caller.h>
11
Julian Halld4071382021-07-07 16:45:53 +010012#ifdef __cplusplus
13extern "C" {
14#endif
15
16/**
17 * Locate and open an RPC session for the service under test. Concrete
18 * implementations of this function will locate a specific service and
19 * associate an RPC Caller with the singleton PSA API client used by
20 * the API tests.
21 */
Julian Hall04460402021-07-08 17:40:57 +010022int locate_service_under_test(struct logging_caller *call_logger);
Julian Halld4071382021-07-07 16:45:53 +010023
24/**
25 * Reliquish the RPC session when the test run is complete.
26 */
27void relinquish_service_under_test(void);
28
29
30#ifdef __cplusplus
31} /* extern "C" */
32#endif
33
34#endif /* SERVICE_UNDER_TEST_H */