#ifndef UI_MESSAGE_CENTER_FAKE_NOTIFIER_SETTINGS_PROVIDER_H_
#define UI_MESSAGE_CENTER_FAKE_NOTIFIER_SETTINGS_PROVIDER_H_
#include "base/memory/scoped_ptr.h"
#include "ui/message_center/notifier_settings.h"
namespace message_center {
class FakeNotifierSettingsProvider : public NotifierSettingsProvider {
public:
FakeNotifierSettingsProvider();
explicit FakeNotifierSettingsProvider(
const std::vector<Notifier*>& notifiers);
virtual ~FakeNotifierSettingsProvider();
virtual size_t GetNotifierGroupCount() const OVERRIDE;
virtual const NotifierGroup& GetNotifierGroupAt(size_t index) const OVERRIDE;
virtual bool IsNotifierGroupActiveAt(size_t index) const OVERRIDE;
virtual void SwitchToNotifierGroup(size_t index) OVERRIDE;
virtual const NotifierGroup& GetActiveNotifierGroup() const OVERRIDE;
virtual void GetNotifierList(std::vector<Notifier*>* notifiers) OVERRIDE;
virtual void SetNotifierEnabled(const Notifier& notifier,
bool enabled) OVERRIDE;
virtual void OnNotifierSettingsClosing() OVERRIDE;
virtual bool NotifierHasAdvancedSettings(const NotifierId& notifier_id) const
OVERRIDE;
virtual void OnNotifierAdvancedSettingsRequested(
const NotifierId& notifier_id,
const std::string* notification_id) OVERRIDE;
virtual void AddObserver(NotifierSettingsObserver* observer) OVERRIDE;
virtual void RemoveObserver(NotifierSettingsObserver* observer) OVERRIDE;
bool WasEnabled(const Notifier& notifier);
int closed_called_count();
void AddGroup(NotifierGroup* group, const std::vector<Notifier*>& notifiers);
void SetNotifierHasAdvancedSettings(const NotifierId& notifier_id);
size_t settings_requested_count() const;
private:
struct NotifierGroupItem {
NotifierGroup* group;
std::vector<Notifier*> notifiers;
NotifierGroupItem();
~NotifierGroupItem();
};
std::map<const Notifier*, bool> enabled_;
std::vector<NotifierGroupItem> items_;
int closed_called_count_;
size_t active_item_index_;
scoped_ptr<NotifierId> notifier_id_with_settings_handler_;
size_t notifier_settings_requested_count_;
};
}
#endif