blob: 320dc793a4d6c54018b36e923bde0ef3d22e58f8 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
#define COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_
#include <string>
#include <utility>
#include <vector>
#include "components/arc/common/notifications.mojom.h"
namespace arc {
class FakeNotificationsInstance : public mojom::NotificationsInstance {
public:
FakeNotificationsInstance();
~FakeNotificationsInstance() override;
void Init(mojom::NotificationsHostPtr host_ptr) override;
void SendNotificationEventToAndroid(
const std::string& key,
mojom::ArcNotificationEvent event) override;
void CreateNotificationWindow(const std::string& key) override;
void CloseNotificationWindow(const std::string& key) override;
void OpenNotificationSettings(const std::string& key) override;
const std::vector<std::pair<std::string, mojom::ArcNotificationEvent>>&
events() const;
private:
std::vector<std::pair<std::string, mojom::ArcNotificationEvent>> events_;
DISALLOW_COPY_AND_ASSIGN(FakeNotificationsInstance);
};
} // namespace arc
#endif // COMPONENTS_ARC_TEST_FAKE_NOTIFICATIONS_INSTANCE_H_