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 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /** |
| 15 | * Locate and open an RPC session for the service under test. Concrete |
| 16 | * implementations of this function will locate a specific service and |
| 17 | * associate an RPC Caller with the singleton PSA API client used by |
| 18 | * the API tests. |
| 19 | */ |
Balint Dobszay | a7a1a5b | 2023-07-05 15:48:21 +0200 | [diff] [blame] | 20 | int locate_service_under_test(void); |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 21 | |
| 22 | /** |
| 23 | * Reliquish the RPC session when the test run is complete. |
| 24 | */ |
Balint Dobszay | a7a1a5b | 2023-07-05 15:48:21 +0200 | [diff] [blame] | 25 | int relinquish_service_under_test(void); |
Julian Hall | d407138 | 2021-07-07 16:45:53 +0100 | [diff] [blame] | 26 | |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } /* extern "C" */ |
| 30 | #endif |
| 31 | |
| 32 | #endif /* SERVICE_UNDER_TEST_H */ |