diff options
author | neb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 19:39:57 +0000 |
---|---|---|
committer | neb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 19:39:57 +0000 |
commit | bb06e1bc0c6ebb2988a7ffcfefa22bfccdd82e23 (patch) | |
tree | 1f3b07b297e4758adba96d70723e2d1dec956275 /chrome/common/ipc_test_sink.h | |
parent | cf1ab6fe1a479279bdf8757f309f7b3d49f1a4df (diff) | |
download | chromium_src-bb06e1bc0c6ebb2988a7ffcfefa22bfccdd82e23.zip chromium_src-bb06e1bc0c6ebb2988a7ffcfefa22bfccdd82e23.tar.gz chromium_src-bb06e1bc0c6ebb2988a7ffcfefa22bfccdd82e23.tar.bz2 |
Add a Pepper audio basic functionality unit test.
Also changed TestSink to be derived from IPC::Channel and made MockRenderThread service AddFilter/RemoveFilter, so that it can be used by MessageFilters.
Review URL: http://codereview.chromium.org/1207005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_test_sink.h')
-rw-r--r-- | chrome/common/ipc_test_sink.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/ipc_test_sink.h b/chrome/common/ipc_test_sink.h index 973fc71..056cb4c 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(); } |