chromium/chrome/browser/apps/app_service/app_icon/web_app_icon_test_helper.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/apps/app_service/app_icon/web_app_icon_test_helper.h"

#include <memory>
#include <vector>

#include "base/containers/contains.h"
#include "base/test/test_future.h"
#include "chrome/browser/apps/app_service/app_icon/app_icon_test_util.h"
#include "chrome/browser/apps/icon_standardizer.h"
#include "chrome/browser/extensions/chrome_app_icon.h"
#include "chrome/browser/web_applications/test/web_app_icon_test_utils.h"
#include "chrome/browser/web_applications/web_app_icon_manager.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registry_update.h"
#include "chrome/browser/web_applications/web_app_sync_bridge.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/image/image_skia_rep.h"

#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "components/services/app_service/public/cpp/icon_types.h"
#include "ui/base/resource/resource_scale_factor.h"
#endif

namespace apps {

IconPurpose;

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

void WebAppIconTestHelper::WriteIcons(const std::string& app_id,
                                      const std::vector<IconPurpose>& purposes,
                                      const std::vector<int>& sizes_px,
                                      const std::vector<SkColor>& colors) {}

gfx::ImageSkia WebAppIconTestHelper::GenerateWebAppIcon(
    const std::string& app_id,
    IconPurpose purpose,
    const std::vector<int>& sizes_px,
    apps::ScaleToSize scale_to_size_in_px,
    bool skip_icon_effects) {}

std::vector<uint8_t> WebAppIconTestHelper::GenerateWebAppCompressedIcon(
    const std::string& app_id,
    IconPurpose purpose,
    const std::vector<int>& sizes_px,
    apps::ScaleToSize scale_to_size_in_px) {}

std::vector<uint8_t> WebAppIconTestHelper::GenerateWebAppCompressedIcon(
    const std::string& app_id,
    IconPurpose purpose,
    IconEffects icon_effects,
    const std::vector<int>& sizes_px,
    apps::ScaleToSize scale_to_size_in_px,
    float scale) {}

void WebAppIconTestHelper::RegisterApp(
    std::unique_ptr<web_app::WebApp> web_app) {}

web_app::WebAppIconManager& WebAppIconTestHelper::icon_manager() {}
}  // namespace apps