Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Unified Diff: jingle/notifier/listener/fake_push_client.h

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix deps, win compile error Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: jingle/notifier/listener/fake_push_client.h
diff --git a/jingle/notifier/listener/fake_push_client.h b/jingle/notifier/listener/fake_push_client.h
index 61ba72b2d94e9e5a594871e700661fa87cf17a77..90e086c3268b902fe7568bbb6a226017d959cf48 100644
--- a/jingle/notifier/listener/fake_push_client.h
+++ b/jingle/notifier/listener/fake_push_client.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/observer_list.h"
#include "jingle/notifier/listener/push_client.h"
+#include "jingle/notifier/listener/push_client_observer.h"
namespace notifier {
@@ -29,8 +30,11 @@ class FakePushClient : public PushClient {
const std::string& email, const std::string& token) OVERRIDE;
virtual void SendNotification(const Notification& notification) OVERRIDE;
- // Triggers OnNotificationStateChange on all observers.
- void SimulateNotificationStateChange(bool notifications_enabled);
+ // Triggers OnNotificationsEnabled on all observers.
+ void EnableNotifications();
+
+ // Triggers OnNotificationsDisabled on all observers.
+ void DisableNotifications(NotificationsDisabledReason reason);
// Triggers OnIncomingNotification on all observers.
void SimulateIncomingNotification(const Notification& notification);

Powered by Google App Engine
This is Rietveld 408576698