diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 23:31:47 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 23:31:47 +0000 |
commit | b44a68148fb3f7a919010a4e5765b7b746453cbf (patch) | |
tree | 78af937ef248a6de3faf648760f3176748f34e2e /chrome/common/ipc_test_sink.h | |
parent | 82347fd5a40e3ffa1204f587aefd930a6b32fd8a (diff) | |
download | chromium_src-b44a68148fb3f7a919010a4e5765b7b746453cbf.zip chromium_src-b44a68148fb3f7a919010a4e5765b7b746453cbf.tar.gz chromium_src-b44a68148fb3f7a919010a4e5765b7b746453cbf.tar.bz2 |
Revert 43234 - Add a Pepper audio basic functionality unit test, take 2.
Also changed TestSink to be derived from IPC::Channel and made MockRenderThread service AddFilter/RemoveFilter, so that it can be used by MessageFilters.
Also removed some logging because it triggers Valgrind errors.
Review URL: http://codereview.chromium.org/1466001
TBR=neb@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_test_sink.h')
-rw-r--r-- | chrome/common/ipc_test_sink.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/common/ipc_test_sink.h b/chrome/common/ipc_test_sink.h index 96e91c0..973fc71 100644 --- a/chrome/common/ipc_test_sink.h +++ b/chrome/common/ipc_test_sink.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 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. @@ -9,7 +9,6 @@ #include <vector> #include "base/basictypes.h" -#include "ipc/ipc_channel.h" #include "ipc/ipc_message.h" namespace IPC { @@ -41,15 +40,11 @@ namespace IPC { // // To hook up the sink, all you need to do is call OnMessageReceived when a // message is received. -class TestSink : public IPC::Channel { +class TestSink { public: TestSink(); ~TestSink(); - // Interface in IPC::Channel. This copies the message to the sink and then - // deletes it. - virtual bool Send(IPC::Message* message); - // 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); |