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

// Copyright 2018 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/fake_data_retriever.h"

#include <memory>
#include <optional>
#include <utility>

#include "base/check.h"
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "chrome/browser/web_applications/web_app_helpers.h"
#include "chrome/browser/web_applications/web_app_install_info.h"
#include "chrome/browser/web_applications/web_app_install_utils.h"
#include "chrome/browser/web_applications/web_contents/web_app_data_retriever.h"
#include "components/webapps/browser/installable/installable_logging.h"
#include "components/webapps/browser/installable/installable_params.h"
#include "components/webapps/common/web_page_metadata.mojom.h"
#include "third_party/blink/public/mojom/manifest/manifest.mojom.h"

namespace web_app {

FakeDataRetriever::FakeDataRetriever() = default;

FakeDataRetriever::~FakeDataRetriever() {}

void FakeDataRetriever::GetWebAppInstallInfo(
    content::WebContents* web_contents,
    GetWebAppInstallInfoCallback callback) {}

void FakeDataRetriever::CheckInstallabilityAndRetrieveManifest(
    content::WebContents* web_contents,
    CheckInstallabilityCallback callback,
    std::optional<webapps::InstallableParams> params) {}

void FakeDataRetriever::GetIcons(content::WebContents* web_contents,
                                 const IconUrlSizeSet& icon_urls,
                                 bool skip_page_favicons,
                                 bool fail_all_if_any_fail,
                                 GetIconsCallback callback) {}

void FakeDataRetriever::SetWebPageMetadata(
    const GURL& last_committed_url,
    const std::u16string& title,
    std::optional<webapps::mojom::WebPageMetadata> opt_metadata) {}

void FakeDataRetriever::SetManifest(blink::mojom::ManifestPtr manifest,
                                    webapps::InstallableStatusCode error_code) {}

void FakeDataRetriever::SetIcons(IconsMap icons_map) {}

void FakeDataRetriever::SetIconsDownloadedResult(IconsDownloadedResult result) {}

void FakeDataRetriever::SetDownloadedIconsHttpResults(
    DownloadedIconsHttpResults icons_http_results) {}

void FakeDataRetriever::SetDestructionCallback(base::OnceClosure callback) {}

void FakeDataRetriever::BuildDefaultDataToRetrieve(const GURL& url,
                                                   const GURL& scope) {}

void FakeDataRetriever::ScheduleCompletionCallback() {}

void FakeDataRetriever::CallCompletionCallback() {}

}  // namespace web_app