#include "chrome/browser/web_applications/os_integration/uninstallation_via_os_settings_sub_manager.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/files/file_util.h"
#include "base/memory/raw_ptr.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_future.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/os_integration/os_integration_manager.h"
#include "chrome/browser/web_applications/proto/web_app_os_integration_state.pb.h"
#include "chrome/browser/web_applications/test/fake_web_app_provider.h"
#include "chrome/browser/web_applications/test/os_integration_test_override_impl.h"
#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_test.h"
#include "chrome/browser/web_applications/test/web_app_test_utils.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.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_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/common/chrome_features.h"
#include "components/webapps/browser/install_result_code.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace web_app {
namespace {
class UninstallationViaOsSettingsSubManagerTest : public WebAppTest { … };
bool IsOsUninstallationSupported() { … }
TEST_F(UninstallationViaOsSettingsSubManagerTest, TestUserUninstallable) { … }
TEST_F(UninstallationViaOsSettingsSubManagerTest, TestNotUserUninstallable) { … }
TEST_F(UninstallationViaOsSettingsSubManagerTest, UninstallApp) { … }
TEST_F(UninstallationViaOsSettingsSubManagerTest,
OsStatesCleanupAfterAppUninstallation) { … }
}
}