#include <memory>
#include <string>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/views/web_apps/protocol_handler_launch_dialog_view.h"
#include "chrome/browser/ui/web_applications/web_app_browsertest_base.h"
#include "chrome/browser/ui/web_applications/web_app_dialogs.h"
#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/services/app_service/public/cpp/protocol_handler_info.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
#include "ui/views/widget/any_widget_observer.h"
#include "ui/views/widget/widget.h"
namespace web_app {
namespace {
webapps::AppId InstallTestWebApp(Profile* profile) { … }
}
class ProtocolHandlerLaunchDialogBrowserTest : public WebAppBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(
ProtocolHandlerLaunchDialogBrowserTest,
WebAppProtocolHandlerIntentPickerDialog_EscapeDoesNotRememberPreference) { … }
IN_PROC_BROWSER_TEST_F(ProtocolHandlerLaunchDialogBrowserTest,
ProtocolHandlerIntentPickerDialog_DisallowAndRemember) { … }
IN_PROC_BROWSER_TEST_F(
ProtocolHandlerLaunchDialogBrowserTest,
ProtocolHandlerIntentPickerDialog_DisallowDoNotRemember) { … }
IN_PROC_BROWSER_TEST_F(ProtocolHandlerLaunchDialogBrowserTest,
ProtocolHandlerIntentPickerDialog_AcceptAndRemember) { … }
IN_PROC_BROWSER_TEST_F(ProtocolHandlerLaunchDialogBrowserTest,
ProtocolHandlerIntentPickerDialog_AcceptDoNotRemember) { … }
class WebAppProtocolHandlerIntentPickerDialogInteractiveBrowserTest
: public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(
WebAppProtocolHandlerIntentPickerDialogInteractiveBrowserTest,
InvokeUi_CloseDialog) { … }
}