Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 1 | /* |
| 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 Hall | 0446040 | 2021-07-08 17:40:57 +0100 | [diff] [blame] | 10 | #include <rpc/common/logging/logging_caller.h> |
| 11 | |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 12 | #ifdef __cplusplus |
| 13 | extern "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 Hall | 0446040 | 2021-07-08 17:40:57 +0100 | [diff] [blame] | 22 | int locate_service_under_test(struct logging_caller *call_logger); |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 23 | |
| 24 | /** |
| 25 | * Reliquish the RPC session when the test run is complete. |
| 26 | */ |
| 27 | void relinquish_service_under_test(void); |
| 28 | |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } /* extern "C" */ |
| 32 | #endif |
| 33 | |
| 34 | #endif /* SERVICE_UNDER_TEST_H */ |