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 /ipc | |
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 'ipc')
-rw-r--r-- | ipc/ipc_channel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h index a7a9a34..8468d7c 100644 --- a/ipc/ipc_channel.h +++ b/ipc/ipc_channel.h @@ -96,6 +96,13 @@ class Channel : public Message::Sender { int GetClientFileDescriptor() const; #endif // defined(OS_POSIX) + protected: + // Used in Chrome by the TestSink to provide a dummy channel implementation + // for testing. TestSink overrides the "interesting" functions in Channel so + // no actual implementation is needed. This will cause un-overridden calls to + // segfault. Do not use outside of test code! + Channel() : channel_impl_(0) { } + private: // PIMPL to which all channel calls are delegated. class ChannelImpl; |