chromium/components/reporting/resources/resource_managed_buffer_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include <cstdint>
#include <string>

#include "components/reporting/resources/resource_managed_buffer.h"

#include "base/memory/scoped_refptr.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "components/reporting/resources/resource_manager.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/status_macros.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

AllOf;
Eq;
IsEmpty;
Not;
Property;
StrEq;

namespace reporting {
namespace {
class ResourceManagedBufferTest : public ::testing::Test {};

TEST_F(ResourceManagedBufferTest, SuccessfulAllocAndClear) {}

TEST_F(ResourceManagedBufferTest, SuccessfulAllocAndDestruct) {}

TEST_F(ResourceManagedBufferTest, FailedAlloc) {}

TEST_F(ResourceManagedBufferTest, SuccessfulAllocAndFillIn) {}

TEST_F(ResourceManagedBufferTest, MultipleAllocations) {}
}  // namespace
}  // namespace reporting