chromium/chrome/browser/web_applications/os_integration/uninstallation_via_os_settings_sub_manager_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Testing crbug.com/1434577, that OS states can be cleaned up even after
// the app has been uninstalled.
TEST_F(UninstallationViaOsSettingsSubManagerTest,
       OsStatesCleanupAfterAppUninstallation) {}

}  // namespace

}  // namespace web_app