chromium/chrome/browser/web_applications/test/web_app_test_observers.h

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

#ifndef CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_TEST_OBSERVERS_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_TEST_OBSERVERS_H_

#include <set>

#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/scoped_observation.h"
#include "chrome/browser/web_applications/web_app_install_manager.h"
#include "chrome/browser/web_applications/web_app_install_manager_observer.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_registrar_observer.h"
#include "components/webapps/common/web_app_id.h"

class Profile;

namespace web_app {

class WebApp;

class WebAppInstallManagerObserverAdapter
    : public WebAppInstallManagerObserver {};

// This is an adapter for the WebAppRegistrarObserver. This class registers
// itself as an observer on construction, and will call the respective
// delegates (if set) for all WebAppRegistrarObserver calls.
class WebAppTestRegistryObserverAdapter : public WebAppRegistrarObserver {};

class WebAppTestInstallObserver final
    : public WebAppInstallManagerObserverAdapter {};

class WebAppTestInstallWithOsHooksObserver final
    : public WebAppInstallManagerObserverAdapter {};

class WebAppTestManifestUpdatedObserver final
    : public WebAppInstallManagerObserverAdapter {};

class WebAppTestUninstallObserver final
    : public WebAppInstallManagerObserverAdapter {};

}  // namespace web_app

#endif  // CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_TEST_OBSERVERS_H_