#include "components/permissions/test/mock_permission_prompt_factory.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "components/permissions/permission_request_manager.h"
#include "components/permissions/request_type.h"
#include "components/permissions/test/mock_permission_prompt.h"
#include "content/public/browser/web_contents.h"
namespace permissions {
MockPermissionPromptFactory::MockPermissionPromptFactory(
PermissionRequestManager* manager)
: … { … }
MockPermissionPromptFactory::~MockPermissionPromptFactory() { … }
std::unique_ptr<PermissionPrompt> MockPermissionPromptFactory::Create(
content::WebContents* web_contents,
PermissionPrompt::Delegate* delegate) { … }
void MockPermissionPromptFactory::ResetCounts() { … }
void MockPermissionPromptFactory::DocumentOnLoadCompletedInPrimaryMainFrame() { … }
bool MockPermissionPromptFactory::is_visible() { … }
int MockPermissionPromptFactory::TotalRequestCount() { … }
bool MockPermissionPromptFactory::RequestTypeSeen(RequestType type) { … }
bool MockPermissionPromptFactory::RequestOriginSeen(const GURL& origin) { … }
void MockPermissionPromptFactory::WaitForPermissionBubble() { … }
std::unique_ptr<PermissionPrompt> MockPermissionPromptFactory::DoNotCreate(
content::WebContents* web_contents,
PermissionPrompt::Delegate* delegate) { … }
void MockPermissionPromptFactory::HideView(MockPermissionPrompt* prompt) { … }
}