910e62b5创建于 1月15日历史提交
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_ASH_EXPERIENCES_ARC_TEST_FAKE_ARC_ICON_CACHE_H_
#define CHROMEOS_ASH_EXPERIENCES_ARC_TEST_FAKE_ARC_ICON_CACHE_H_

#include <vector>

#include "chromeos/ash/experiences/arc/intent_helper/arc_icon_cache_delegate.h"

namespace arc {

// For tests to wrap the real mojo connection.
class FakeArcIconCache : public ArcIconCacheDelegate {
 public:
  FakeArcIconCache();
  FakeArcIconCache(const FakeArcIconCache&) = delete;
  FakeArcIconCache operator=(const FakeArcIconCache&) = delete;
  ~FakeArcIconCache() override;

  // ArcIconCacheDelegate:
  GetResult GetActivityIcons(const std::vector<ActivityName>& activities,
                             OnIconsReadyCallback callback) override;
};

}  // namespace arc

#endif  // CHROMEOS_ASH_EXPERIENCES_ARC_TEST_FAKE_ARC_ICON_CACHE_H_