chromium/third_party/blink/renderer/core/fetch/blob_bytes_consumer_test.cc

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

#include "third_party/blink/renderer/core/fetch/blob_bytes_consumer.h"

#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/fetch/bytes_consumer_test_util.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/loader/threadable_loader.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/blob/blob_data.h"
#include "third_party/blink/renderer/platform/blob/testing/fake_blob.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_error.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_response.h"
#include "third_party/blink/renderer/platform/loader/testing/bytes_consumer_test_reader.h"
#include "third_party/blink/renderer/platform/network/encoded_form_data.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

namespace {

PublicState;
Result;

class BlobBytesConsumerTestClient final
    : public GarbageCollected<BlobBytesConsumerTestClient>,
      public BytesConsumer::Client {};

class BlobBytesConsumerTest : public PageTestBase {};

TEST_F(BlobBytesConsumerTest, TwoPhaseRead) {}

TEST_F(BlobBytesConsumerTest, CancelBeforeStarting) {}

TEST_F(BlobBytesConsumerTest, CancelAfterStarting) {}

TEST_F(BlobBytesConsumerTest, DrainAsBlobDataHandle) {}

TEST_F(BlobBytesConsumerTest, DrainAsBlobDataHandle_2) {}

TEST_F(BlobBytesConsumerTest, DrainAsBlobDataHandle_3) {}

TEST_F(BlobBytesConsumerTest, DrainAsFormData) {}

TEST_F(BlobBytesConsumerTest, ConstructedFromNullHandle) {}

}  // namespace

}  // namespace blink