#include "base/files/file_util.h"
#include "base/path_service.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/chrome_test_extension_loader.h"
#include "chrome/browser/extensions/install_verifier.h"
#include "chrome/browser/extensions/manifest_v2_experiment_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_window/public/browser_window_features.h"
#include "chrome/browser/ui/extensions/mv2_disabled_dialog_controller.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/test/interaction/interactive_browser_test.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/mojom/manifest.mojom-shared.h"
#include "extensions/test/test_extension_dir.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/widget/any_widget_observer.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/constants/ash_pref_names.h"
#include "ash/wm/window_restore/window_restore_util.h"
#endif
namespace extensions {
namespace {
DEFINE_LOCAL_ELEMENT_IDENTIFIER_VALUE(…);
bool HasExtensionByName(std::string_view name, const ExtensionSet& extensions) { … }
}
class Mv2DisabledDialogControllerInteractiveUITest
: public InteractiveBrowserTest { … };
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_PRE_OnRemoveSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_OnRemoveSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
OnRemoveSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_PRE_OnManageSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_OnManageSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
OnManageSelected) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_PRE_NoUserAction) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_NoUserAction) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
NoUserAction) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PolicyInstalledExtensions) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_IconsLoaded) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
IconsLoaded) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
PRE_CorrectExtensionInfo) { … }
IN_PROC_BROWSER_TEST_F(Mv2DisabledDialogControllerInteractiveUITest,
CorrectExtensionInfo) { … }
}