#include "third_party/blink/renderer/platform/blob/blob_data.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/blob/blob.mojom-blink.h"
#include "third_party/blink/public/mojom/blob/blob_registry.mojom-blink.h"
#include "third_party/blink/public/mojom/blob/file_backed_blob_factory.mojom-blink.h"
#include "third_party/blink/public/platform/file_path_conversion.h"
#include "third_party/blink/renderer/platform/blob/blob_bytes_provider.h"
#include "third_party/blink/renderer/platform/blob/testing/fake_blob_registry.h"
#include "third_party/blink/renderer/platform/blob/testing/fake_file_backed_blob_factory.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/uuid.h"
namespace blink {
Blob;
BlobRegistry;
DataElement;
DataElementBlob;
DataElementBytes;
DataElementFile;
DataElementPtr;
FileBackedBlobFactory;
namespace {
struct ExpectedElement { … };
}
class BlobDataHandleTest : public testing::Test { … };
TEST_F(BlobDataHandleTest, CreateEmpty) { … }
TEST_F(BlobDataHandleTest, CreateFromEmptyData) { … }
TEST_F(BlobDataHandleTest, CreateFromUUID) { … }
TEST_F(BlobDataHandleTest, CreateFromFile) { … }
TEST_F(BlobDataHandleTest, CreateFromEmptyElements) { … }
TEST_F(BlobDataHandleTest, CreateFromSmallBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromLargeBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromMergedBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromMergedLargeAndSmallBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromMergedSmallAndLargeBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromBlob) { … }
TEST_F(BlobDataHandleTest, CreateFromBlobsAndBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromSmallBytesAfterLargeBytes) { … }
TEST_F(BlobDataHandleTest, CreateFromManyMergedBytes) { … }
}