#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "base/command_line.h"
#include "base/containers/enum_set.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/test/test_future.h"
#include "build/build_config.h"
#include "chrome/browser/web_applications/mojom/user_display_mode.mojom.h"
#include "chrome/browser/web_applications/os_integration/os_integration_manager.h"
#include "chrome/browser/web_applications/os_integration/os_integration_test_override.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/test/fake_web_app_provider.h"
#include "chrome/browser/web_applications/test/web_app_icon_test_utils.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "chrome/browser/web_applications/web_app_constants.h"
#include "chrome/browser/web_applications/web_app_helpers.h"
#include "chrome/browser/web_applications/web_app_install_finalizer.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "chrome/browser/web_applications/web_app_install_params.h"
#include "chrome/browser/web_applications/web_app_install_utils.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/chrome_switches.h"
#include "components/webapps/browser/install_result_code.h"
#include "components/webapps/browser/installable/installable_metrics.h"
#include "components/webapps/browser/uninstall_result_code.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace web_app {
namespace test {
void WaitUntilReady(WebAppProvider* provider) { … }
void WaitUntilWebAppProviderAndSubsystemsReady(WebAppProvider* provider) { … }
void AwaitStartWebAppProviderAndSubsystems(Profile* profile) { … }
webapps::AppId InstallDummyWebApp(
Profile* profile,
const std::string& app_name,
const GURL& start_url,
const webapps::WebappInstallSource install_source) { … }
webapps::AppId InstallWebApp(Profile* profile,
std::unique_ptr<WebAppInstallInfo> web_app_info,
bool overwrite_existing_manifest_fields,
webapps::WebappInstallSource install_source) { … }
webapps::AppId InstallWebAppWithoutOsIntegration(
Profile* profile,
std::unique_ptr<WebAppInstallInfo> web_app_info,
bool overwrite_existing_manifest_fields,
webapps::WebappInstallSource install_source) { … }
webapps::AppId InstallShortcut(Profile* profile,
const std::string& shortcut_name,
const GURL& start_url,
bool create_default_icon,
bool is_policy_install) { … }
void UninstallWebApp(Profile* profile,
const webapps::AppId& app_id,
webapps::WebappUninstallSource uninstall_source) { … }
bool UninstallAllWebApps(Profile* profile) { … }
}
}