blob: 658a72d9f8d6ead88a3d9b9ab1fcc962fe5809d7 [file] [log] [blame]
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -05001#ifndef AOS_TESTING_TEST_SHM_H_
2#define AOS_TESTING_TEST_SHM_H_
3
John Park398c74a2018-10-20 21:17:39 -07004#include "aos/ipc_lib/shared_mem.h"
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -05005
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -08006namespace aos::testing {
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -05007
8// Manages creating and cleaning up "shared memory" which works within this
9// process and any that it fork(2)s.
10class TestSharedMemory {
11 public:
12 // Calls EnableTestLogging().
13 TestSharedMemory();
14 ~TestSharedMemory();
15
16 private:
17 struct aos_core global_core_data_;
18};
19
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -080020} // namespace aos::testing
Brian Silvermanf5f8d8e2015-12-06 18:39:12 -050021
22#endif // AOS_TESTING_TEST_SHM_H_