chromium/base/memory/structured_shared_memory_unittest.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// A SharedMemoryMapper that always fails to map memory.
class FailingSharedMemoryMapper final : public SharedMemoryMapper {};

TEST(StructuredSharedMemoryTest, ReadWrite) {}

TEST(StructuredSharedMemoryTest, Initialize) {}

TEST(StructuredSharedMemoryTest, MapFailure) {}

TEST(StructuredSharedMemoryDeathTest, DuplicateRegion) {}

TEST(StructuredSharedMemoryTest, AtomicReadWrite) {}

TEST(StructuredSharedMemoryTest, AtomicInitialize) {}

}  // namespace

}  // namespace base