#include "chrome/browser/ui/views/web_apps/deprecated_apps_dialog_view.h"
#include <set>
#include <string_view>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/common/extension_id.h"
#include "extensions/test/test_extension_dir.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/widget/any_widget_observer.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_observer.h"
namespace {
constexpr char mock_app_manifest1[] = …;
constexpr char mock_app_manifest2[] = …;
constexpr char mock_url1[] = …;
constexpr char mock_url2[] = …;
}
class DeprecatedAppDialogWidgetObserver : public views::WidgetObserver { … };
class DeprecatedAppsDialogViewBrowserTest
: public extensions::ExtensionBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DeprecatedAppsDialogViewBrowserTest,
VerifyTableModelForSingleApp) { … }
IN_PROC_BROWSER_TEST_F(DeprecatedAppsDialogViewBrowserTest,
VerifyTableModelForMultipleApps) { … }
IN_PROC_BROWSER_TEST_F(DeprecatedAppsDialogViewBrowserTest,
AcceptDialogAndVerify) { … }
IN_PROC_BROWSER_TEST_F(DeprecatedAppsDialogViewBrowserTest,
DialogDoesNotLoadOnNavigationToChromeApps) { … }
IN_PROC_BROWSER_TEST_F(DeprecatedAppsDialogViewBrowserTest,
DeprecatedAppsDialogShownFromLinkClick) { … }