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

Unified Diff: ipc/ipc_test_sink.h

Issue 13533007: Test extension reloading behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a ScopedOleInitializer for Windows Created 7 years, 8 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 | « content/public/test/test_renderer_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_test_sink.h
diff --git a/ipc/ipc_test_sink.h b/ipc/ipc_test_sink.h
index 78be9e752699f7111d273beb9089c969a37890d7..7a39f3812c46550438ed3b8b11bb31f3a43a8929 100644
--- a/ipc/ipc_test_sink.h
+++ b/ipc/ipc_test_sink.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/observer_list.h"
#include "ipc/ipc_channel.h"
+#include "ipc/ipc_listener.h"
namespace IPC {
@@ -70,7 +71,7 @@ class Message;
//
// To hook up the sink, all you need to do is call OnMessageReceived when a
// message is received.
-class TestSink : public Channel {
+class TestSink : public Channel, public Listener {
public:
TestSink();
virtual ~TestSink();
@@ -81,7 +82,7 @@ class TestSink : public Channel {
// Used by the source of the messages to send the message to the sink. This
// will make a copy of the message and store it in the list.
- bool OnMessageReceived(const Message& msg);
+ virtual bool OnMessageReceived(const Message& msg) OVERRIDE;
// Returns the number of messages in the queue.
size_t message_count() const { return messages_.size(); }
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698