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

// 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.

#include "chrome/browser/web_applications/test/web_app_test_observers.h"

#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_provider.h"

namespace web_app {

namespace {

#if DCHECK_IS_ON()
bool IsAnyIdEmpty(const std::set<webapps::AppId>& app_ids) {}
#endif

}  // namespace

WebAppInstallManagerObserverAdapter::WebAppInstallManagerObserverAdapter(
    WebAppInstallManager* install_manager) {}

WebAppInstallManagerObserverAdapter::WebAppInstallManagerObserverAdapter(
    Profile* profile)
    :{}

WebAppInstallManagerObserverAdapter::~WebAppInstallManagerObserverAdapter() =
    default;

void WebAppInstallManagerObserverAdapter::SetWebAppInstalledDelegate(
    WebAppInstalledDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::SetWebAppInstalledWithOsHooksDelegate(
    WebAppInstalledWithOsHooksDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::SetWebAppWillBeUninstalledDelegate(
    WebAppWillBeUninstalledDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::SetWebAppUninstalledDelegate(
    WebAppUninstalledDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::SetWebAppManifestUpdateDelegate(
    WebAppManifestUpdateDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::SetWebAppSourceRemovedDelegate(
    WebAppSourceRemovedDelegate delegate) {}

void WebAppInstallManagerObserverAdapter::OnWebAppInstalled(
    const webapps::AppId& app_id) {}

void WebAppInstallManagerObserverAdapter::OnWebAppInstalledWithOsHooks(
    const webapps::AppId& app_id) {}

void WebAppInstallManagerObserverAdapter::OnWebAppManifestUpdated(
    const webapps::AppId& app_id) {}

void WebAppInstallManagerObserverAdapter::OnWebAppWillBeUninstalled(
    const webapps::AppId& app_id) {}

void WebAppInstallManagerObserverAdapter::OnWebAppUninstalled(
    const webapps::AppId& app_id,
    webapps::WebappUninstallSource uninstall_source) {}

void WebAppInstallManagerObserverAdapter::OnWebAppInstallManagerDestroyed() {}

void WebAppInstallManagerObserverAdapter::OnWebAppSourceRemoved(
    const webapps::AppId& app_id) {}

void WebAppInstallManagerObserverAdapter::SignalRunLoopAndStoreAppId(
    const webapps::AppId& app_id) {}

WebAppTestRegistryObserverAdapter::WebAppTestRegistryObserverAdapter(
    WebAppRegistrar* registrar) {}

WebAppTestRegistryObserverAdapter::WebAppTestRegistryObserverAdapter(
    Profile* profile)
    :{}

WebAppTestRegistryObserverAdapter::~WebAppTestRegistryObserverAdapter() =
    default;

void WebAppTestRegistryObserverAdapter::SetWebAppWillBeUpdatedFromSyncDelegate(
    WebAppWillBeUpdatedFromSyncDelegate delegate) {}

void WebAppTestRegistryObserverAdapter::SetWebAppLastBadgingTimeChangedDelegate(
    WebAppLastBadgingTimeChangedDelegate delegate) {}

void WebAppTestRegistryObserverAdapter::
    SetWebAppProtocolSettingsChangedDelegate(
        WebAppProtocolSettingsChangedDelegate delegate) {}

void WebAppTestRegistryObserverAdapter::OnWebAppsWillBeUpdatedFromSync(
    const std::vector<const WebApp*>& new_apps_state) {}

void WebAppTestRegistryObserverAdapter::OnWebAppLastBadgingTimeChanged(
    const webapps::AppId& app_id,
    const base::Time& time) {}

void WebAppTestRegistryObserverAdapter::OnWebAppProtocolSettingsChanged() {}

void WebAppTestRegistryObserverAdapter::OnAppRegistrarDestroyed() {}

void WebAppTestRegistryObserverAdapter::SignalRunLoopAndStoreAppId(
    const webapps::AppId& app_id) {}

WebAppTestInstallObserver::WebAppTestInstallObserver(Profile* profile)
    :{}
WebAppTestInstallObserver::~WebAppTestInstallObserver() = default;

void WebAppTestInstallObserver::BeginListening(
    const std::set<webapps::AppId>& optional_app_ids) {}

webapps::AppId WebAppTestInstallObserver::Wait() {}

webapps::AppId WebAppTestInstallObserver::BeginListeningAndWait(
    const std::set<webapps::AppId>& optional_app_ids) {}

WebAppTestInstallWithOsHooksObserver::WebAppTestInstallWithOsHooksObserver(
    Profile* profile)
    :{}
WebAppTestInstallWithOsHooksObserver::~WebAppTestInstallWithOsHooksObserver() =
    default;

void WebAppTestInstallWithOsHooksObserver::BeginListening(
    const std::set<webapps::AppId>& optional_app_ids) {}

webapps::AppId WebAppTestInstallWithOsHooksObserver::Wait() {}

webapps::AppId WebAppTestInstallWithOsHooksObserver::BeginListeningAndWait(
    const std::set<webapps::AppId>& optional_app_ids) {}

WebAppTestManifestUpdatedObserver::WebAppTestManifestUpdatedObserver(
    WebAppInstallManager* install_manager)
    :{}
WebAppTestManifestUpdatedObserver::~WebAppTestManifestUpdatedObserver() =
    default;

void WebAppTestManifestUpdatedObserver::BeginListening(
    const std::set<webapps::AppId>& optional_app_ids) {}

webapps::AppId WebAppTestManifestUpdatedObserver::Wait() {}

webapps::AppId WebAppTestManifestUpdatedObserver::BeginListeningAndWait(
    const std::set<webapps::AppId>& optional_app_ids) {}

WebAppTestUninstallObserver::WebAppTestUninstallObserver(Profile* profile)
    :{}

WebAppTestUninstallObserver::~WebAppTestUninstallObserver() = default;

void WebAppTestUninstallObserver::BeginListening(
    const std::set<webapps::AppId>& optional_app_ids) {}

webapps::AppId WebAppTestUninstallObserver::Wait() {}

webapps::AppId WebAppTestUninstallObserver::BeginListeningAndWait(
    const std::set<webapps::AppId>& optional_app_ids) {}

}  // namespace web_app