#include "third_party/blink/renderer/platform/loader/fetch/raw_resource.h"
#include <memory>
#include "base/numerics/safe_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/platform/web_url_response.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/loader/fetch/memory_cache.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/loader/fetch/response_body_loader.h"
#include "third_party/blink/renderer/platform/loader/fetch/response_body_loader_client.h"
#include "third_party/blink/renderer/platform/loader/testing/replaying_bytes_consumer.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
namespace blink {
class RawResourceTest : public testing::Test { … };
class DummyClient final : public GarbageCollected<DummyClient>,
public RawResourceClient { … };
class AddingClient final : public GarbageCollected<AddingClient>,
public RawResourceClient { … };
TEST_F(RawResourceTest, AddClientDuringCallback) { … }
class RemovingClient : public GarbageCollected<RemovingClient>,
public RawResourceClient { … };
TEST_F(RawResourceTest, RemoveClientDuringCallback) { … }
TEST_F(RawResourceTest, PreloadWithAsynchronousAddClient) { … }
}