#include <map>
#include <utility>
#include "base/containers/flat_set.h"
#include "base/functional/callback.h"
#include "base/test/test_future.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/web_applications/web_app_browsertest_base.h"
#include "chrome/browser/web_applications/commands/fetch_manifest_and_install_command.h"
#include "chrome/browser/web_applications/external_install_options.h"
#include "chrome/browser/web_applications/externally_managed_app_manager.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/test/test_web_app_url_loader.h"
#include "chrome/browser/web_applications/test/web_app_test_utils.h"
#include "chrome/browser/web_applications/web_app_command_manager.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "chrome/browser/web_applications/web_app_helpers.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_contents/web_app_data_retriever.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/services/app_service/public/cpp/file_handler.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "url/gurl.h"
namespace web_app {
namespace {
AcceptMap;
std::vector<apps::FileHandler::AcceptEntry> GetAcceptEntriesForFileHandler(
const AcceptMap& accept_map) { … }
}
class ExternallyManagedInstallCommandBrowserTest
: public WebAppBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
BasicInstallCommand) { … }
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
ExternalInstallWindowMode) { … }
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
ExternalInstallBrowserMode) { … }
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
InstallAppFromPolicy) { … }
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
InstallFailsWithInvalidManifest) { … }
IN_PROC_BROWSER_TEST_F(
ExternallyManagedInstallCommandBrowserTest,
DISABLED_ExternalInstallSourceReinstallOverrideManifestData) { … }
IN_PROC_BROWSER_TEST_F(ExternallyManagedInstallCommandBrowserTest,
UserInstallReinstallOverrideManifestData) { … }
}