| Index: chrome/common/ipc_test_sink.h
|
| diff --git a/chrome/common/ipc_test_sink.h b/chrome/common/ipc_test_sink.h
|
| index 973fc71925092aa0f8ac261a25b5794d45b31262..056cb4cf273e07308145b4648002526e74e71112 100644
|
| --- a/chrome/common/ipc_test_sink.h
|
| +++ b/chrome/common/ipc_test_sink.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "ipc/ipc_message.h"
|
| +#include "ipc/ipc_channel.h"
|
|
|
| namespace IPC {
|
|
|
| @@ -40,14 +41,14 @@ namespace IPC {
|
| //
|
| // To hook up the sink, all you need to do is call OnMessageReceived when a
|
| // message is received.
|
| -class TestSink {
|
| +class TestSink : public IPC::Channel {
|
| public:
|
| TestSink();
|
| ~TestSink();
|
|
|
| // 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.
|
| - void OnMessageReceived(const Message& msg);
|
| + virtual bool Send(Message* message);
|
|
|
| // Returns the number of messages in the queue.
|
| size_t message_count() const { return messages_.size(); }
|
|
|