blob: 24c87ce8f2bf2de5b54a2e04c04a78d9d6c15408 [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
Stephan Pleinesad3085f2024-05-30 10:50:50 -07004#include "aos/ipc_lib/shared_mem_types.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_