#include "base/memory/structured_shared_memory.h"
#include <atomic>
#include <optional>
#include <utility>
#include "base/containers/span.h"
#include "base/memory/platform_shared_memory_handle.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/shared_memory_mapper.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
class FailingSharedMemoryMapper final : public SharedMemoryMapper { … };
TEST(StructuredSharedMemoryTest, ReadWrite) { … }
TEST(StructuredSharedMemoryTest, Initialize) { … }
TEST(StructuredSharedMemoryTest, MapFailure) { … }
TEST(StructuredSharedMemoryDeathTest, DuplicateRegion) { … }
TEST(StructuredSharedMemoryTest, AtomicReadWrite) { … }
TEST(StructuredSharedMemoryTest, AtomicInitialize) { … }
}
}