chromium/chrome/renderer/bound_session_credentials/bound_session_request_throttled_in_renderer_manager_unittest.cc

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

#include "chrome/renderer/bound_session_credentials/bound_session_request_throttled_in_renderer_manager.h"

#include <memory>

#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "chrome/common/bound_session_request_throttled_handler.h"
#include "chrome/common/renderer_configuration.mojom.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "net/cookies/site_for_cookies.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {
FieldsAre;
UnblockAction;
ResumeBlockedRequestsTrigger;

class FakeBoundSessionRequestThrottledHandler
    : public chrome::mojom::BoundSessionRequestThrottledHandler {};
}  // namespace

class BoundSessionRequestThrottledInRendererManagerTest
    : public ::testing::Test {};

TEST_F(BoundSessionRequestThrottledInRendererManagerTest, SingleRequest) {}

TEST_F(BoundSessionRequestThrottledInRendererManagerTest, MultipleRequests) {}

TEST_F(BoundSessionRequestThrottledInRendererManagerTest,
       RemoteDisconnectedPendingBlockedRequestsAreCancelled) {}

TEST_F(BoundSessionRequestThrottledInRendererManagerTest,
       RemoteDisconnectedNewBlockedRequestsAreCancelled) {}