#ifdef UNSAFE_BUFFERS_BUILD
#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) { … }
}
}