blob: b9757e6c1e2ce86b01a2c7b53e2ee03fd3af57d5 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_QUICK_INSERT_MOCK_QUICK_INSERT_ASSET_FETCHER_H_
#define ASH_QUICK_INSERT_MOCK_QUICK_INSERT_ASSET_FETCHER_H_
#include "ash/ash_export.h"
#include "ash/quick_insert/quick_insert_asset_fetcher.h"
namespace ash {
class ASH_EXPORT MockQuickInsertAssetFetcher : public QuickInsertAssetFetcher {
public:
MockQuickInsertAssetFetcher();
MockQuickInsertAssetFetcher(const MockQuickInsertAssetFetcher&) = delete;
MockQuickInsertAssetFetcher& operator=(const MockQuickInsertAssetFetcher&) =
delete;
~MockQuickInsertAssetFetcher() override;
// QuickInsertAssetFetcher:
std::unique_ptr<network::SimpleURLLoader> FetchGifFromUrl(
const GURL& url,
size_t rank,
QuickInsertGifFetchedCallback callback) override;
std::unique_ptr<network::SimpleURLLoader> FetchGifPreviewImageFromUrl(
const GURL& url,
size_t rank,
QuickInsertImageFetchedCallback callback) override;
void FetchFileThumbnail(const base::FilePath& path,
const gfx::Size& size,
FetchFileThumbnailCallback callback) override;
};
} // namespace ash
#endif // ASH_QUICK_INSERT_MOCK_QUICK_INSERT_ASSET_FETCHER_H_