#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_future.h"
#include "chrome/browser/sync/test/integration/web_apps_sync_test_base.h"
#include "chrome/browser/web_applications/generated_icon_fix_manager.h"
#include "chrome/browser/web_applications/generated_icon_fix_util.h"
#include "chrome/browser/web_applications/os_integration/os_integration_manager.h"
#include "chrome/browser/web_applications/test/fake_web_app_provider.h"
#include "chrome/browser/web_applications/test/fake_web_contents_manager.h"
#include "chrome/browser/web_applications/test/web_app_icon_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_install_test_utils.h"
#include "chrome/browser/web_applications/test/web_app_test_observers.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_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "chrome/common/chrome_features.h"
#include "components/sync/base/features.h"
#include "components/sync/base/time.h"
#include "components/sync/service/sync_service_impl.h"
#include "content/public/test/browser_test.h"
namespace web_app {
static void PrintTo(const GeneratedIconFix& generated_icon_fix,
std::ostream* out) { … }
namespace {
struct GeneratedIconFixFutures { … };
}
class TwoClientGeneratedIconFixSyncTest : public WebAppsSyncTestBase { … };
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, Fix) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, TimeWindowExpired) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, NotRequired) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, AppUninstalled) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest,
RetroactiveTimeWindow) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, Throttling) { … }
IN_PROC_BROWSER_TEST_F(TwoClientGeneratedIconFixSyncTest, AttemptLimit) { … }
}