#ifdef UNSAFE_BUFFERS_BUILD
#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 { … };
}
class BoundSessionRequestThrottledInRendererManagerTest
: public ::testing::Test { … };
TEST_F(BoundSessionRequestThrottledInRendererManagerTest, SingleRequest) { … }
TEST_F(BoundSessionRequestThrottledInRendererManagerTest, MultipleRequests) { … }
TEST_F(BoundSessionRequestThrottledInRendererManagerTest,
RemoteDisconnectedPendingBlockedRequestsAreCancelled) { … }
TEST_F(BoundSessionRequestThrottledInRendererManagerTest,
RemoteDisconnectedNewBlockedRequestsAreCancelled) { … }