blob: a1c79ee648d9900f88b76dfb3d4fc7e9151d25ec [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
6namespace aos {
7namespace testing {
8
9// Manages creating and cleaning up "shared memory" which works within this
10// process and any that it fork(2)s.
11class TestSharedMemory {
12 public:
13 // Calls EnableTestLogging().
14 TestSharedMemory();
15 ~TestSharedMemory();
16
17 private:
18 struct aos_core global_core_data_;
19};
20
21} // namespace testing
22} // namespace aos
23
24#endif // AOS_TESTING_TEST_SHM_H_