1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29

ash / components / arc / test / fake_arc_icon_cache.h [blame]

// 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 ASH_COMPONENTS_ARC_TEST_FAKE_ARC_ICON_CACHE_H_
#define ASH_COMPONENTS_ARC_TEST_FAKE_ARC_ICON_CACHE_H_

#include <vector>

#include "ash/components/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  // ASH_COMPONENTS_ARC_TEST_FAKE_ARC_ICON_CACHE_H_