#include "chrome/browser/ui/views/external_protocol_dialog_test_harness.h"
#include "chrome/browser/external_protocol/external_protocol_handler.h"
#include "chrome/browser/ui/browser.h"
#include "net/dns/mock_host_resolver.h"
namespace test {
class ExternalProtocolDialogTestApi { … };
}
namespace {
constexpr char kInitiatingOrigin[] = …;
constexpr char kRedirectingOrigin[] = …;
class FakeDefaultSchemeClientWorker
: public shell_integration::DefaultSchemeClientWorker { … };
}
ExternalProtocolDialogBrowserTest::ExternalProtocolDialogBrowserTest() { … }
ExternalProtocolDialogBrowserTest::~ExternalProtocolDialogBrowserTest() { … }
void ExternalProtocolDialogBrowserTest::ShowUi(
const std::string& initiating_origin) { … }
void ExternalProtocolDialogBrowserTest::SetChecked(bool checked) { … }
scoped_refptr<shell_integration::DefaultSchemeClientWorker>
ExternalProtocolDialogBrowserTest::CreateShellWorker(const GURL& url) { … }
ExternalProtocolHandler::BlockState
ExternalProtocolDialogBrowserTest::GetBlockState(const std::string& scheme,
Profile* profile) { … }
void ExternalProtocolDialogBrowserTest::RunExternalProtocolDialog(
const GURL& url,
content::WebContents* web_contents,
ui::PageTransition page_transition,
bool has_user_gesture,
const std::optional<url::Origin>& initiating_origin,
const std::u16string& program_name) { … }
void ExternalProtocolDialogBrowserTest::LaunchUrlWithoutSecurityCheck(
const GURL& url,
content::WebContents* web_contents) { … }
void ExternalProtocolDialogBrowserTest::OnSetBlockState(
const std::string& scheme,
const url::Origin& initiating_origin,
BlockState state) { … }
void ExternalProtocolDialogBrowserTest::SetUpOnMainThread() { … }
void ExternalProtocolDialogBrowserTest::WaitForLaunchUrl() { … }