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

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

Issue 10398051: [Sync] Replace TalkMediator*/MediatorThread* with PushClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix test 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/mediator_thread_impl.cc ('k') | jingle/notifier/listener/mediator_thread_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/mediator_thread_mock.h
diff --git a/jingle/notifier/listener/mediator_thread_mock.h b/jingle/notifier/listener/mediator_thread_mock.h
deleted file mode 100644
index 44b2043c236a6aa1e566fd7f6bee625dfaf10496..0000000000000000000000000000000000000000
--- a/jingle/notifier/listener/mediator_thread_mock.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2011 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.
-
-// This is mock for delicious testing.
-// It's very primitive, and it would have been better to use gmock, except
-// that gmock is only for linux.
-
-#ifndef JINGLE_NOTIFIER_LISTENER_MEDIATOR_THREAD_MOCK_H_
-#define JINGLE_NOTIFIER_LISTENER_MEDIATOR_THREAD_MOCK_H_
-
-#include <string>
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "jingle/notifier/listener/mediator_thread.h"
-
-namespace buzz {
-class XmppClientSettings;
-}
-
-namespace notifier {
-
-class MockMediatorThread : public MediatorThread {
- public:
- MockMediatorThread();
-
- virtual ~MockMediatorThread();
-
- void Reset();
-
- virtual void AddObserver(Observer* observer) OVERRIDE;
-
- virtual void RemoveObserver(Observer* observer) OVERRIDE;
-
- // Overridden from MediatorThread
- virtual void Login(const buzz::XmppClientSettings& settings) OVERRIDE;
-
- virtual void Logout() OVERRIDE;
-
- virtual void Start() OVERRIDE;
-
- virtual void SubscribeForUpdates(
- const SubscriptionList& subscriptions) OVERRIDE;
-
- virtual void ListenForUpdates() OVERRIDE;
-
- virtual void SendNotification(const Notification &) OVERRIDE;
- virtual void UpdateXmppSettings(
- const buzz::XmppClientSettings& settings) OVERRIDE;
-
-
- void ReceiveNotification(const Notification& data);
-
- Observer* observer_;
- // Internal State
- int login_calls;
- int logout_calls;
- int start_calls;
- int subscribe_calls;
- int listen_calls;
- int send_calls;
- int update_settings_calls;
-};
-
-} // namespace notifier
-
-#endif // JINGLE_NOTIFIER_LISTENER_MEDIATOR_THREAD_MOCK_H_
« no previous file with comments | « jingle/notifier/listener/mediator_thread_impl.cc ('k') | jingle/notifier/listener/mediator_thread_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698