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

// Copyright 2014 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/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

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

#include <memory>
#include <utility>

#include "services/network/public/mojom/fetch_api.mojom-blink.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_request_init.h"
#include "third_party/blink/renderer/core/fileapi/blob.h"
#include "third_party/blink/renderer/core/html/forms/form_data.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_buffer.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
#include "third_party/blink/renderer/core/url/url_search_params.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

class RequestBodyTest : public testing::Test {};

TEST_F(RequestBodyTest, EmptyBody) {}

TEST_F(RequestBodyTest, InitWithBodyString) {}

TEST_F(RequestBodyTest, InitWithBodyArrayBuffer) {}

TEST_F(RequestBodyTest, InitWithBodyArrayBufferView) {}

TEST_F(RequestBodyTest, InitWithBodyFormData) {}

TEST_F(RequestBodyTest, InitWithUrlSearchParams) {}

TEST_F(RequestBodyTest, InitWithBlob) {}

TEST(ServiceWorkerRequestTest, FromString) {}

TEST(ServiceWorkerRequestTest, FromRequest) {}

TEST(ServiceWorkerRequestTest, FromAndToFetchAPIRequest) {}

TEST(ServiceWorkerRequestTest, ToFetchAPIRequestDoesNotStripURLFragment) {}

}  // namespace blink