#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/metrics/user_action_tester.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/extensions/extension_install_prompt.h"
#include "chrome/browser/extensions/extension_install_prompt_show_params.h"
#include "chrome/browser/extensions/extension_install_prompt_test_helper.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/supervised_user/supervised_user_extensions_metrics_recorder.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/views/extensions/extension_install_dialog_view.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_dialog_auto_confirm.h"
#include "extensions/browser/extension_icon_manager.h"
#include "extensions/common/extension.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
namespace content {
class WebContents;
}
Extension;
ScopedTestDialogAutoConfirm;
class ExtensionInstallDialogViewTestSupervised
: public extensions::ExtensionBrowserTest { … };
ExtensionInstallDialogViewTestSupervised::
ExtensionInstallDialogViewTestSupervised()
: … { … }
void ExtensionInstallDialogViewTestSupervised::SetUpOnMainThread() { … }
std::unique_ptr<ExtensionInstallPrompt::Prompt>
ExtensionInstallDialogViewTestSupervised::CreatePrompt() { … }
ExtensionInstallDialogView*
ExtensionInstallDialogViewTestSupervised::CreateAndShowPrompt(
ExtensionInstallPromptTestHelper* helper,
std::unique_ptr<ExtensionInstallPrompt::Prompt> prompt) { … }
IN_PROC_BROWSER_TEST_F(ExtensionInstallDialogViewTestSupervised, ChildAccepts) { … }
IN_PROC_BROWSER_TEST_F(ExtensionInstallDialogViewTestSupervised,
ChildCanceled) { … }