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

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

Issue 10388227: Revert 138216 - [Sync] Turn notifier::PushClient into an interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « jingle/notifier/listener/fake_push_client.cc ('k') | jingle/notifier/listener/fake_push_client_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/fake_push_client_observer.h
===================================================================
--- jingle/notifier/listener/fake_push_client_observer.h (revision 138220)
+++ jingle/notifier/listener/fake_push_client_observer.h (working copy)
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 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 JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
-#define JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
-
-#include "base/compiler_specific.h"
-#include "jingle/notifier/listener/push_client_observer.h"
-
-namespace notifier {
-
-// PushClientObserver implementation that can be used for testing.
-class FakePushClientObserver : public PushClientObserver {
- public:
- FakePushClientObserver();
- virtual ~FakePushClientObserver();
-
- // PushClientObserver implementation.
- virtual void OnNotificationStateChange(
- bool notifications_enabled) OVERRIDE;
- virtual void OnIncomingNotification(
- const Notification& notification) OVERRIDE;
-
- bool notifications_enabled() const;
- const Notification& last_incoming_notification() const;
-
- private:
- bool notifications_enabled_;
- Notification last_incoming_notification_;
-};
-
-} // namespace notifier
-
-#endif // JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
« no previous file with comments | « jingle/notifier/listener/fake_push_client.cc ('k') | jingle/notifier/listener/fake_push_client_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698