#include "third_party/blink/renderer/core/fetch/response.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fetch/body_stream_buffer.h"
#include "third_party/blink/renderer/core/fetch/bytes_consumer_test_util.h"
#include "third_party/blink/renderer/core/fetch/fetch_response_data.h"
#include "third_party/blink/renderer/core/frame/frame.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/testing/dummy_page_holder.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/blob/blob_data.h"
#include "third_party/blink/renderer/platform/loader/fetch/bytes_consumer.h"
#include "third_party/blink/renderer/platform/loader/fetch/text_resource_decoder_options.h"
#include "third_party/blink/renderer/platform/loader/testing/replaying_bytes_consumer.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
namespace {
TEST(ServiceWorkerResponseTest, FromFetchResponseData) { … }
void CheckResponseStream(ScriptState* script_state,
Response* response,
bool check_response_body_stream_buffer) { … }
BodyStreamBuffer* CreateHelloWorldBuffer(ScriptState* script_state) { … }
TEST(ServiceWorkerResponseTest, BodyStreamBufferCloneDefault) { … }
TEST(ServiceWorkerResponseTest, BodyStreamBufferCloneBasic) { … }
TEST(ServiceWorkerResponseTest, BodyStreamBufferCloneCors) { … }
TEST(ServiceWorkerResponseTest, BodyStreamBufferCloneOpaque) { … }
TEST(ServiceWorkerResponseTest, BodyStreamBufferCloneError) { … }
}
}